Skip to content

Release 0.11.0 #2833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 89 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
765e758
first commit
anupambhatnagar Sep 9, 2019
ebb82d2
adding colon
anupambhatnagar Sep 9, 2019
4650477
changes reflecting comments on github
anupambhatnagar Sep 10, 2019
614bea9
small edits
anupambhatnagar Sep 10, 2019
7da5526
added cloud training unsupported comment
anupambhatnagar Sep 10, 2019
883b343
more small edits
anupambhatnagar Sep 10, 2019
8c8cf81
make docs agree with code (#2612)
Sep 24, 2019
f8dfd68
[protobuf] Update protobufs with patch from circleci. (#2618)
surfnerd Sep 25, 2019
c916801
[ci] Add protobuf generation check as a CI job. (#2617)
surfnerd Sep 25, 2019
1160fb4
Move gRPC code to its own special place (#2621)
surfnerd Sep 25, 2019
4aae592
Better environment shutdown (#2620)
Sep 25, 2019
99e997c
use [] instead of Dictionary.Add to avoid key exception (#2629)
Sep 26, 2019
9370b63
small mypy cleanup (#2637)
Sep 30, 2019
c8ce9c5
added venv setup documentation for windows
anupambhatnagar Sep 30, 2019
71d82bb
Rename protobuf objects to be suffixed with 'Proto' in python and C#.…
surfnerd Sep 30, 2019
e58a1a5
Merge branch 'develop' into release-0.10.0
Sep 30, 2019
fbc8857
Merge pull request #2649 from Unity-Technologies/release-0.10.0
Sep 30, 2019
d873d16
Cleanup visual obs setup (#2647)
Oct 1, 2019
cb1065d
Modified meta_curriculum JSON reading loop to only deal with .json (#…
Vaspra Oct 1, 2019
296020f
Fixed various typos (#2652)
DanAmador Oct 1, 2019
2caf0ba
Rename k_KApiVersion to k_ApiVersion. (#2655)
surfnerd Oct 1, 2019
3a189a0
[migrating] Update migrating docs to call out gRPC service changes. (…
surfnerd Oct 1, 2019
426a2dd
removing docker and windows docs
anupambhatnagar Oct 1, 2019
31977ee
resolving conflicts
anupambhatnagar Oct 1, 2019
60dd1de
removing broken links
anupambhatnagar Oct 1, 2019
79cc770
fixing typos
anupambhatnagar Oct 2, 2019
8f4e603
Fix issue which prevented training when code stripping was enabled (#…
surfnerd Oct 2, 2019
0eb23a3
Use a class for camera res, not dict (#2656)
Oct 2, 2019
7e1ed38
addressing comments from Marwan
anupambhatnagar Oct 3, 2019
c3f37f6
Feature Deprecation : Online Behavioral Cloning (#2659)
vincentpierre Oct 3, 2019
80c1af3
Fix bug when batch size is a non-multiple of sequence length (#2661)
Oct 3, 2019
4b882a5
Fix visual Pyramids and Pushblock scenes (#2672)
Oct 3, 2019
d524f0d
Develop deprecate broadcasting (#2669)
vincentpierre Oct 4, 2019
8066b8f
Removing virus (#2680)
vincentpierre Oct 4, 2019
c38a7fa
C# hierarchical timers (#2198)
Oct 4, 2019
d7a6ed7
Bugfix for LSTM+BC (#2679)
Oct 4, 2019
49b6a49
resolving conflicts
anupambhatnagar Oct 7, 2019
866ed5c
Merge pull request #2515 from Unity-Technologies/ab/docs-updates
anupambhatnagar Oct 7, 2019
6457bbd
Refactor ICommunicator API (#2675)
surfnerd Oct 7, 2019
46a999e
Change docs and ipynb to reflect new import path for UnityEnvironment…
Oct 8, 2019
370972c
exclude bair.berkeley.edu temporarily (#2702)
Oct 9, 2019
e701d44
Develop spawn brains (#2676)
vincentpierre Oct 9, 2019
e84da3f
Barracuda hotfix for TF2 AddV2 support (#2703)
mantasp Oct 9, 2019
b05d828
Fix SAC + LSTM Barracuda inference (#2698)
Oct 9, 2019
a05e669
Remove references to batcher in comments. (#2701)
surfnerd Oct 9, 2019
5ab6d1f
Merge Hotfix 0.10.1 to Develop (#2708)
Oct 10, 2019
8f2aff4
Develop unified version (#2712)
Oct 10, 2019
b165082
check for unecessary list comprehensions (#2707)
Oct 10, 2019
c545d0b
Remove Destructor for RpcCommunicator. (#2716)
surfnerd Oct 10, 2019
8aa48fd
Revert "Develop unified version (#2712)" (#2719)
Oct 10, 2019
b3a54eb
Tick gym_unity version to 0.4.8 (#2711)
Oct 10, 2019
affd875
Fix "memory leak" during inference (#2722)
Oct 11, 2019
54fe1a9
Made gridworld a prefab so we can have more of them at once (#2721)
vincentpierre Oct 11, 2019
e394da3
Made ModelParamLoader static and made a modelRunner for batching at i…
vincentpierre Oct 11, 2019
64a0df7
detect common mock errors (#2723)
Oct 11, 2019
eb60ac7
Revert "exclude bair.berkeley.edu temporarily (#2702)" (#2734)
Oct 15, 2019
7884b0c
Fix rider warnings and format code. (#2730)
surfnerd Oct 15, 2019
fd78219
Speed up processing large vector observations (#2717)
Oct 16, 2019
0963264
Fix crash when SAC is used with Curiosity and Continuous Actions (#2740)
Oct 16, 2019
773ee62
update mypy-protobuf and generate pyi files (#2757)
Oct 18, 2019
9314f24
Added --cpu flag to train using CPU only (#2755)
caioc2 Oct 19, 2019
248b467
Update Learning-Environment-Design-Agents.md (#2764) (#2770)
Oct 21, 2019
a580b31
Fixing unecerrary error with curriculum (#2772)
vincentpierre Oct 21, 2019
4a56460
[WIP] ISensor interface and use for visual observations (#2731)
Oct 22, 2019
e229197
move CacheBrainParameters() and friends out of #if blocks (#2777)
Oct 22, 2019
0b8a088
Add a Yamato pipeline to run C# editmode tests. (#2773)
surfnerd Oct 22, 2019
6fe5783
Better hyperparams for GridWorld/SAC (#2776)
Oct 22, 2019
607af33
Add a standalone build test pipeline to Yamato to check for player sc…
surfnerd Oct 23, 2019
22afeef
1 to 1 Brain to Agent (#2729)
vincentpierre Oct 23, 2019
1a1919a
[bug] Check for non-null event before invoking. Fixes MLA-217. (#2782)
surfnerd Oct 23, 2019
16d1092
migration guide for Visual Observations (#2785)
Oct 23, 2019
18e98fd
fix trailing whitespace in markdown (#2786)
Oct 23, 2019
2979bb0
update visual observations docs (#2787)
Oct 23, 2019
507243b
make RayPerception.Perceive abstract and override in base classes (#2…
Oct 23, 2019
747883d
gym - handle uint8_visual for observation space (#2783)
Oct 24, 2019
eb9943c
add note about Y flip (#2724)
Oct 24, 2019
42118fe
Deploy new versions to pypi (#2789)
Oct 24, 2019
444d3cc
Bump version to 0.11.0.dev0
Oct 24, 2019
c63fb43
Editing documentation : Migrating.md (#2793)
vincentpierre Oct 24, 2019
86f63d9
Update package and communicator versions to 0.11
Oct 28, 2019
a941c50
Remove pip cache fallback for CircleCI
Oct 28, 2019
f6861e6
Limit Tensorflow version for tests to <2.0
Oct 29, 2019
fcd14a7
Use stable bokken image. (#2815)
surfnerd Oct 29, 2019
e2492f8
build fixes for 2018+ (#2808)
Oct 29, 2019
57a6499
Add more editor versions for testing. (#2809)
surfnerd Oct 29, 2019
dfd65a3
class variable for API verison, fix env tests (#2817)
Oct 29, 2019
9503177
fixed area prefab
Hunter-Unity Oct 29, 2019
ac93337
Update NN models for all example scenes (v0.11.0)
Oct 30, 2019
a90477c
Merge branch 'master' into release-0.11.0
Oct 31, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
117 changes: 115 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
keys:
# Parameterize the cache so that different python versions can get different versions of the packages
- v1-dependencies-py<< parameters.pyversion >>-{{ checksum "python_deps.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-py<< parameters.pyversion >>-

- run:
name: Install Dependencies
Expand Down Expand Up @@ -121,7 +119,97 @@ jobs:
. venv/bin/activate
pre-commit run --hook-stage manual markdown-link-check --all-files

protobuf_generation_check:
docker:
- image: circleci/python:3.7.3
working_directory: ~/repo/

steps:
- checkout
- run:
name: Combine proto files for caching
command: cat protobuf-definitions/proto/mlagents/envs/communicator_objects/*.proto > /tmp/proto_deps.txt

- restore_cache:
keys:
- v1-protobuf-gen-dependencies-{{ checksum "/tmp/proto_deps.txt" }}
- v1-protobuf-gen-dependencies-

- run:
name: Install Dependencies
command: |
sudo apt-get install nuget
nuget install Grpc.Tools -Version 1.14.1 -OutputDirectory protobuf-definitions/
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install grpcio-tools==1.13.0 --progress-bar=off
pip install mypy-protobuf==1.16.0 --progress-bar=off
- save_cache:
paths:
- ./venv
key: v1-protobuf-gen-dependencies-{{ checksum "/tmp/proto_deps.txt" }}

- run:
name: Generate protobufs
command: |
. venv/bin/activate
cd protobuf-definitions
chmod +x Grpc.Tools.1.14.1/tools/linux_x64/protoc
chmod +x Grpc.Tools.1.14.1/tools/linux_x64/grpc_csharp_plugin
COMPILER=Grpc.Tools.1.14.1/tools/linux_x64 ./make.sh
CS_PROTO_PATH=UnitySDK/Assets/ML-Agents/Scripts/Grpc/CommunicatorObjects
git diff --exit-code --quiet -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" \
|| { GIT_ERR=$?; echo "protobufs need to be regenerated, apply the patch uploaded to artifacts."; \
echo "Apply the patch with the command: git apply proto.patch"; \
git diff -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" > /tmp/proto.patch; \
exit $GIT_ERR; }
- store_artifacts:
path: /tmp/proto.patch
destination: proto.patch

deploy:
parameters:
directory:
type: string
description: Local directory to use for publishing (e.g. ml-agents)
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
name: install python dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install setuptools wheel twine
- run:
name: verify git tag vs. version
command: |
python3 -m venv venv
. venv/bin/activate
cd << parameters.directory >>
python setup.py verify
- run:
name: create packages
command: |
. venv/bin/activate
cd << parameters.directory >>
python setup.py sdist
python setup.py bdist_wheel
- run:
name: upload to pypi
# To upload to test, just add the following flag to twine upload:
# --repository-url https://test.pypi.org/legacy/
# and change the username to "mlagents-test"
command: |
. venv/bin/activate
cd << parameters.directory >>
twine upload -u mlagents -p $PYPI_PASSWORD dist/*

workflows:
version: 2
workflow:
jobs:
- build_python:
Expand All @@ -137,3 +225,28 @@ workflows:
# Test python 3.7 with the newest supported versions
pip_constraints: test_constraints_max_version.txt
- markdown_link_check
- protobuf_generation_check
- deploy:
name: deploy ml-agents-envs
directory: ml-agents-envs
filters:
tags:
only: /[0-9]+(\.[0-9]+)*(\.dev[0-9]+)*/
branches:
ignore: /.*/
- deploy:
name: deploy ml-agents
directory: ml-agents
filters:
tags:
only: /[0-9]+(\.[0-9]+)*(\.dev[0-9]+)*/
branches:
ignore: /.*/
- deploy:
name: deploy gym-unity
directory: gym-unity
filters:
tags:
only: /[0-9]+(\.[0-9]+)*(\.dev[0-9]+)*/
branches:
ignore: /.*/
25 changes: 24 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ repos:
rev: 19.3b0
hooks:
- id: black
exclude: >
(?x)^(
.*_pb2.py|
.*_pb2_grpc.py
)$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
hooks:
Expand All @@ -20,14 +26,16 @@ repos:
name: mypy-gym-unity
files: "gym-unity/.*"
args: [--ignore-missing-imports, --disallow-incomplete-defs]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: mixed-line-ending
exclude: >
(?x)^(
.*cs.meta|
.*.css
.*.css|
.*.meta
)$
args: [--fix=lf]
- id: flake8
Expand All @@ -36,6 +44,16 @@ repos:
.*_pb2.py|
.*_pb2_grpc.py
)$
additional_dependencies: [flake8-comprehensions]
- id: trailing-whitespace
name: trailing-whitespace-markdown
types: [markdown]

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.4.1 # Use the ref you want to point at
hooks:
- id: python-check-mock-methods

# "Local" hooks, see https://pre-commit.com/#repository-local-hooks
- repo: local
hooks:
Expand All @@ -51,3 +69,8 @@ repos:
exclude: ".*localized.*"
# Only run manually, e.g. pre-commit run --hook-stage manual markdown-link-check
stages: [manual]
- id: validate-versions
name: validate library versions
language: script
entry: utils/validate_versions.py
files: ".*/setup.py"
30 changes: 30 additions & 0 deletions .yamato/csharp-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
test_editors:
- version: 2017.4
- version: 2018.4
- version: 2019.3
---
{% for editor in test_editors %}
test_mac_editmode_{{ editor.version }}:
name: Test Mac EditMode {{ editor.version }}
agent:
type: Unity::VM::osx
image: ml-agents/ml-agents-bokken-mac:release
flavor: i1.small
variables:
UNITY_VERSION: {{ editor.version }}
commands:
- ./run-tests-editmode-osx-editor.sh
triggers:
branches:
only:
- "/develop-.*/"
targets:
only:
- "develop"
pull_requests:
- targets:
only:
- "master"
- "/release-.*/"
- "/hotfix-.*/"
{% endfor %}
30 changes: 30 additions & 0 deletions .yamato/standalone-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
test_editors:
- version: 2017.4
- version: 2018.4
- version: 2019.3
---
{% for editor in test_editors %}
test_mac_standalone_{{ editor.version }}:
name: Test Mac Standalone {{ editor.version }}
agent:
type: Unity::VM::osx
image: ml-agents/ml-agents-bokken-mac:release
flavor: i1.small
variables:
UNITY_VERSION: {{ editor.version }}
commands:
- ./run-standalone-build-osx.sh
triggers:
branches:
only:
- "/develop-.*/"
targets:
only:
- "develop"
pull_requests:
- targets:
only:
- "master"
- "/release-.*/"
- "/hotfix-.*/"
{% endfor %}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ developer communities.
* Support for multiple environment configurations and training scenarios
* Train memory-enhanced agents using deep reinforcement learning
* Easily definable Curriculum Learning and Generalization scenarios
* Broadcasting of agent behavior for supervised learning
* Built-in support for Imitation Learning
* Flexible agent control with On Demand Decision Making
* Visualizing network outputs within the environment
Expand Down
4 changes: 2 additions & 2 deletions SURVEY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unity ML-Agents Toolkit Survey

Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents Toolkit can we continue to improve and grow. Please take a few minutes to let us know about it.
Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents Toolkit can we continue to improve and grow. Please take a few minutes to let us know about it.

[Fill out the survey](https://goo.gl/forms/qFMYSYr5TlINvG6f1)
[Fill out the survey](https://goo.gl/forms/qFMYSYr5TlINvG6f1)
Binary file removed UnitySDK/Assets/Gizmos/HeuristicBrain Icon.png
Binary file not shown.
76 changes: 0 additions & 76 deletions UnitySDK/Assets/Gizmos/HeuristicBrain Icon.png.meta

This file was deleted.

Binary file removed UnitySDK/Assets/Gizmos/LearningBrain Icon.png
Binary file not shown.
Loading