Граф коммитов

3529 Коммитов

Автор SHA1 Сообщение Дата
Miguel Alonso Jr 4734c0821c Bumped package version for patch. 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr c5cc616c12 Update CHANGELOG.md 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 8ca2786250 Updated editor version for DevProject and bumped ml-agents versions in Project and DevProject to 2.2.0-exp.1 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 59eba6cd96 Reverted validate versions. 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 61ad569539 Fixed bug with com.unity.ml-agents-test.yml 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 271e3ded67 Fixed bug with com.unity.ml-agents-test.yml 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 74abb0f337 Fixed bug with test_versions.metafile 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 4fd21da276 Release 19 branch lts deprecation (#5673)
* Updated Project and DevProject to 2020.3 LTS.

* Updated supported LTS version to 2020.3.

* Updated changelog.

* Bumped up CI Unity version from 2020.2 to 2020.3.

* Update CHANGELOG.md

* Removing VS Studio dependency from manifest.json.

* Update packages-lock.json
2022-01-17 12:34:59 -05:00
Miguel Alonso Jr ff0171d9fd Updates for package validation errors. (#5671) 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr 2868461772 Updated release versions and release links. (#5669) 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr d6399f762e Updated README for release. (#5670)
* Updated README for release.

* Updated README for release.
2022-01-17 12:34:59 -05:00
Miguel Alonso Jr b5bfb7385e Removed unreleased section. (#5667) 2022-01-17 12:34:59 -05:00
Miguel Alonso Jr d2ee1e2569
Updated versions for main. Also updated validate versions script to r… (#5668)
* Updated versions for main. Also updated validate versions script to remove exp.1 from package version.

* Reverted validate versions.

* Updated versions.

* Bumped package version for patch.
2022-01-14 17:10:05 -05:00
Xun Cao ed0aabc678
enable 3D Ball sample import button in package manager for unity sdk (#5665)
* enable 3D Ball sample import button in package manager for unity sdk

* add Samples folder

* add meta file

* fix git ignore config
2022-01-13 12:21:21 -08:00
Miguel Alonso Jr f469f7c711
Changelog prepped for release (#5629)
* Changelog prepped for release

* Added missing PRs to the changelog.

* Added missing CHANGELOG item.
2022-01-06 19:19:50 -05:00
Miguel Alonso Jr df8073bfc0
Updated input system to 1.3.0 (#5661)
* Updated input system to 1.3.0

* Updated DevProject to Input System 1.3.0.
2022-01-05 19:37:35 -05:00
Miguel Alonso Jr f93e2f954e
Removing erroneous meta file. (#5658) 2022-01-04 15:25:55 -05:00
Jason Rupert 82a1114d83
Update DQN Colab example to support export for Barracuda inference (#5643)
* Update DQN GridWorld colab example to be capable of outputting an ONNX model that works for inference.
-Allow GridWorld to work without a GoalSensor.  Defaults to the GreenPlus target in that case.
-Add GridWorldColab.onnx file, trained and generated with the colab.

* Upgrade DQN GridWorld Colab to produce model that can work with (modified) GridWorld Scene.
-permute observation images from NHWC to NCHW right after env_step.  Everything following is NCHW.
-update input_shape indexes and remove equivalent permute from the VisualQNetwork
-fix reference to global qnet inside generate_trajectories (use the passed in version)
-create wrapper network to add required constants and dummy input masks required by the
 runtime inference (Barracuda)
-export the wrapped network to ONNX format compatible with Barracuda

* Add additional GridWorld scene called GridWorldColab that has the goal sensors removed (target is always green plus) and masks disabled.  The purpose of this is to have a scene compatible with the DQN GridWorld Colab example.

* Minor edit in Colab docs.

* Delete unnecessary .lighting file.

* Update changelog.

* Update colab/Colab_UnityEnvironment_2_Train.ipynb

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

* Fix error in colab metadata name.

* Add suggested comments and fix incorrect parameter ordering.

* Update docs for Elo curriculum completion measure.

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
2022-01-04 13:27:11 -05:00
milant 57014c8f90
Fixed formatting of a Note in Training-Plugins.md (#5522)
Corrected a "Note" heading that should be bolded.
2021-12-21 07:58:23 -08:00
Miguel Alonso Jr 961876ba98
Removed mention of release 19 (#5637)
* Removed mention of release 19

* revert release 19 doc changes

Co-authored-by: mahon94 <maryam.honari@unity3d.com>
2021-12-15 11:26:27 -05:00
Henry Peteet d9b493a042
Fix analytics error when compiling XBOX and PS5 (#5628)
* Add ENABLE_CLOUD_SERVICES_ANALYTICS Guards

To use analytics safely you must wrap usage with 
`#if ENABLE_CLOUD_SERVICES_ANALYTICS` 
See https://docs.unity3d.com/ScriptReference/Analytics.Analytics.html
2021-12-07 12:45:51 -05:00
Miguel Alonso Jr 5a25d782e9
Changelog cleanup. (#5627)
* Release cleanup for changelog

* Update CHANGELOG.md

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
2021-12-02 15:05:46 -05:00
Maryam Honari f9ec4bad16
Fix doc typos (#5620)
* stochastic env,  typo fix
2021-12-02 09:07:09 -08:00
Maryam Honari b596254d1d
Deterministic actions python training (#5626)
* Progress on propagating the setting to the action model.

* Added the _sample_action logic and tests.

* Add information to the changelog.

* Prioritize the CLI over the configuration file.

* Update documentation for config file.

* CR refactor.

* Update docs/Training-Configuration-File.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
Update ml-agents/mlagents/trainers/settings.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
Update ml-agents/mlagents/trainers/cli_utils.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

* Fix CR requests

* Add tests for discrete.

* Update ml-agents/mlagents/trainers/torch/distributions.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

* Added more stable test.

* Return deterministic actions for training (#5615)

* Added more stable test.

* Fix the tests.

* Fix pre-commit

* Fix help line to pass precommit.

* support for deterministic inference in onnx (#5593)

* Init: actor.forward outputs separate deterministic actions

* changelog

* Renaming

* Add more tests

* Package changes to support deterministic inference (#5599)

* Init: actor.forward outputs separate deterministic actions

* fix tensor shape for discrete actions

* Add test and editor flag

- Add tests for deterministic sampling
- update editor and tooltips

* Reverting to "Deterministic Inference"

* dissect tests

* Update docs

* Update CHANGELOG.md

* Fix the deterministic showing up all the tiime (#5621)

Co-authored-by: Chingiz Mardanov <chingiz.mardanov@unity3d.com>
Co-authored-by: cmard <87716492+cmard@users.noreply.github.com>
2021-12-02 12:03:44 -05:00
Cassandra Lacombe 06e0db47b6
Package Signature in CI (#5565)
As part of the package signing initiative, we'd like bundled packages to be prepared for upcoming constraints regarding the need to have packages with a valid signature during APV testing.

Because of this, we are going through all bundled packages' repositories creating a PR that would enable package signing on your packages.

With signing enabled, upm-ci will perform an extra step where it will send each package to a signing service and then generate the final signed artifacts.
Internally, in an attempt to ensure that everything works, we are running yamato tests where all bundled packages (including yours) are signed and validated, proving that the packages in this repository should yield no errors. The validation step is also performed in all platforms.

In the case that any error does arise, this can be simply reverted back by removing the environment variable, UPMCI_ENABLE_PACKAGE_SIGNING in the publishing jobs.

For more information, please refer to: https://confluence.unity3d.com/display/PAK/Package+Signature

You can contact us through:
#team-pkd-176-internal-package-signing
@cassandra & @felipemunoz
2021-12-02 11:59:37 -05:00
Maryam Honari 9e91b980f6
fix visual encoder gpu-test (#5625)
* fix visual encoder gpu-test
2021-12-01 07:59:36 -08:00
Maryam Honari 38b65b0eb9
Revert "Deterministic actions python training (#5619)" (#5622)
This reverts commit 0de327ce93.
2021-11-18 17:37:22 -05:00
Maryam Honari 0de327ce93
Deterministic actions python training (#5619)
* Progress on propagating the setting to the action model.

* Added the _sample_action logic and tests.

* Add information to the changelog.

* Prioritize the CLI over the configuration file.

* Update documentation for config file.

* CR refactor.

* Update docs/Training-Configuration-File.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Miguel Alonso Jr. <76960110+miguelalonsojr@users.noreply.github.com>
Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
Update ml-agents/mlagents/trainers/settings.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
Update ml-agents/mlagents/trainers/cli_utils.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

* Fix CR requests

* Add tests for discrete.

* Update ml-agents/mlagents/trainers/torch/distributions.py

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

* Added more stable test.

* Return deterministic actions for training (#5615)

* Added more stable test.

* Fix the tests.

* Fix pre-commit

* Fix help line to pass precommit.

* support for deterministic inference in onnx (#5593)

* Init: actor.forward outputs separate deterministic actions

* changelog

* Renaming

* Add more tests

* Package changes to support deterministic inference (#5599)

* Init: actor.forward outputs separate deterministic actions

* fix tensor shape for discrete actions

* Add test and editor flag

- Add tests for deterministic sampling
- update editor and tooltips

* Reverting to "Deterministic Inference"

* dissect tests

* Update docs

* Update CHANGELOG.md

Co-authored-by: Chingiz Mardanov <chingiz.mardanov@unity3d.com>
Co-authored-by: cmard <87716492+cmard@users.noreply.github.com>
2021-11-18 09:56:12 -08:00
Maryam Honari 348bc9d9cb
Fixing license file name (#5609) 2021-11-08 10:59:31 -08:00
Henry Peteet 2b0a09e124
Update stale config (#5603)
Include bugs but extend the period of time before bugs are marked stale to 2 sprints. Closed after no activity in 3 sprints.
2021-11-08 13:26:05 -05:00
cmard 6f361f44fc
Update the logo. (#5600) 2021-11-08 13:18:56 -05:00
Miguel Alonso Jr cbc1993c62
Fix for critic normalization bug (#5595)
* Added normalization to critic during training for poca, ppo, and sac.

* Fixed critic normalization bug. Added new tests to cover.

* Updated CHANGELOG.

* Fixed typo in test_trainers.py
2021-11-02 13:06:23 -04:00
Jason Rupert c07fc4cdcf
Update README.md (#5598)
Correct minor typo
2021-10-28 10:36:57 -07:00
Henry Peteet bf3649faab
Upgrade Barracuda to 2.3.1-preview (#5591)
* Upgrade to 2.3.1-preview
2021-10-27 11:15:24 -04:00
cmard 9160d858c3
Method to return stacked observations (#5547)
* Method to return stacked observations

* Added testing and returning staked observation flat.

* Update the comment lines.

* Remove brainstorm commits.
2021-10-25 10:38:06 -04:00
cmard 05c027551e
Fixing the analytics side-channel for curriculum learning. (#5586)
* Fixing the analytics side-channel for curriculum learning.

* Made a more robust test.

* Update the changelog.

* Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Maryam Honari <honari.m94@gmail.com>

Co-authored-by: Maryam Honari <honari.m94@gmail.com>
2021-10-18 10:06:33 -04:00
Miguel Alonso Jr 003e8aed3b
Develop add training area replicator (#5568)
* Added training area replicator to com.unity.ml-agents package.

* Added num_areas to Unity RL Initialization proto. Added cli and config file support for num_areas.

* Changed training area replicator to size grid automatically from number of areas.

* Added tests for the training area replicator.

* Added setup for tests for the training area replicator.

* Added comments and updated create tutorial for training area replicator.

* Updated CHANGELOG.

* Fixed some failing tests.

* Update com.unity.ml-agents/CHANGELOG.md

Co-authored-by: Henry Peteet <henry.peteet@unity3d.com>

* Update docs/Learning-Environment-Create-New.md

Co-authored-by: Henry Peteet <henry.peteet@unity3d.com>

* Update com.unity.ml-agents/Runtime/Areas/TrainingAreaReplicator.cs

Co-authored-by: Henry Peteet <henry.peteet@unity3d.com>

* Addressed CR comments.

Co-authored-by: Miguel Alonso Jr <miguelalonsojr>
Co-authored-by: Henry Peteet <henry.peteet@unity3d.com>
2021-10-13 09:28:10 -04:00
Marwan Mattar f5e4a2b5ea
Removing link to ML-Agents Challenge 1 on Unity Connect (#5581)
Removing link to Unity Connect that is now deprecated
2021-10-12 17:02:31 -04:00
Henry Peteet 97eb505f9a
Restart crashed Unity environments (#5553)
### Change(s)

Update the SubprocessEnvManager to restart workers when the underlying Unity environments crash. 
When a worker receives an ENV_EXITED signal it will now:

1. Record all failures coming through the step queue and drop all other messages.
2. Purge any pending trajectories as they may belong to a crashed worker or be corrupted.
3. Restart all failed workers (up to a configurable limit)

This behavior can be limited via a rate limit, max lifetime limit, or both. The configuration options for both are shown below with their default values. 

⚠️  Each of these options applies to a single environment, if num_envs > 1 then the limit will apply separately to each replica (num_envs = 2 will spawn 2 Unity environments which can each be restarted 10 times).

```yaml
env_settings:
  # Can restart 10 times over the lifetime of the experiment.
  max_lifetime_restarts: 10
  # Rate limit of 1 failure per 60s
  restarts_rate_limit_n: 1
  restarts_rate_limit_period_s: 60
```

They can of course be passed via CLI arguments as well

```bash
--max-lifetime-restarts
--restarts-rate-limit-n
--restarts-rate-limit-period-s
```

### Disabling this feature
* Rate limiting can be turned off by setting `--restarts-rate-limit-n=-1`
* Lifetime limiting can be turned off by setting `--max-lifetime-restarts=-1`
2021-10-07 10:10:20 -07:00
Jason Bowman 37a6aa2b15
Harden user PII protection logic and extend TrainingAnalytics to expose detailed configuration parameters. (#5512)
* Hash128 is not a cryptographic hash, replace with HMAC-SHA256.

* Extend TrainingAnalytics side channel to expose configuration details

* Change member function scopes and hash demo_paths

* Extract tbiEvent hashing method and add test coverage
2021-10-05 12:34:03 -07:00
Miguel Alonso Jr f2e0cb869a
Feature/mla 2205 separate schedule lr beta epsilon (#5538)
* Added initial (untested) support for separating schedule for beta, LR, and epsilon.

* Added support for beta and epsilon schedule in test config conversion

* Updated docs. Set epsilon to be linear by default.

* Updated configs to add beta and epsilon schedule where appropriate.

* Addressed CR change requests.

* Minor update.

* Updated docs.

* Added changes to CHANGELOG.

* Updated CHANGELOG.

* Fixed typo in Training-Configuration-File.md

* Reverted config changes to remove beta and epsilon schedules.

* mypy error fixed from pre-commit.

* Fixed a bug that was causing a settings test to fail.

* Addressed CR comments.

Co-authored-by: Miguel Alonso Jr <miguel.alonso@miguel.alonso-00MM>
Co-authored-by: Miguel Alonso Jr <miguelalonsojr>
2021-09-30 12:06:29 -04:00
Vincent-Pierre BERGES c8d3768e10
Custom trainer editor analytics (#5511)
* Custom trainer editor analytics
* inherit the default_training_analytics_side_channel
2021-09-24 15:58:43 -07:00
andrewcoh 4f43c400a6
Fix VAIL (#5546) 2021-09-23 15:31:24 -04:00
Metin Celik 3bd0b68bf8
Update Learning-Environment-Design-Agents.md (#5507)
3Dball doc correction
2021-09-22 10:08:14 -07:00
Ruo-Ping Dong ee02841256
Fix test failures on trunk with input system 1.1.1 (#5542) 2021-09-20 15:47:53 -07:00
jmercado1985 86d079f200
Update README.md with new survey link(#5500) 2021-09-17 13:25:12 -07:00
Miguel Alonso Jr 6866e9f49b
Update gym version to 0.20.0 (#5540)
* Fixed failing test due to gym 0.20.0 release. Updated gym-unity package to fix gym version to 0.20.0.

* Updated CHANGELOG.
2021-09-17 16:16:59 -04:00
Ervin T df01588b89
Fix broken link in documentation (#5477) 2021-09-16 14:35:01 -07:00
Maryam Honari 6b2c1273a1
Initialize-from custom checkpoints (#5525)
* init from any checkpoint including older ones
* moving init_path logic ahead to learn.py
* fixing pytest to take the full path
* doc & changelog
2021-09-14 16:33:23 -07:00
Jason Bowman 7603fb7709
Update dotnet-format to address breaking changes introduced by upstream changes (#5528)
Pre-commit is using a version of dotnet and dotnet-format and has picked up a newer version of the utility that is not compatible with .NET 3.1 or 5.x -- it installs it's packages using dotnet tool install. This version's default entrypoint is also incompatible with our project structure, as the style and analyzer subcommands are now run by default and do not support the --folder option.

The entrypoint can be over-ridden to specify the whitespace module, which should match previous behavior.
2021-09-02 15:06:49 -07:00