Skip to content

Release v0.8.2 #2157

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 48 commits into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
32ada65
Install dependencies for ml-agents-envs and ml-agents in Docker
eshvk Apr 4, 2019
c1bad57
Merge pull request #1894 from Unity-Technologies/develop-esh-docker
eshvk Apr 4, 2019
0ac9c7c
Merge pull request #1932 from Unity-Technologies/release-v0.8
eshvk Apr 12, 2019
47a0230
Merge pull request #1942 from Unity-Technologies/hotfix-pypi
eshvk Apr 15, 2019
78f51ed
Merge pull request #1944 from Unity-Technologies/hotfix-gym-unity
eshvk Apr 15, 2019
c0d8f22
Merge pull request #1947 from malmaud/patch-1
eshvk Apr 15, 2019
05eb3d2
Python code reformat via [`black`](https://github.com/ambv/black).
eshvk Apr 12, 2019
45c535b
Add use curiosity in Hallway example environment (#1952)
sdiao Apr 16, 2019
d54b2d4
Merge pull request #1934 from Unity-Technologies/develop-black
eshvk Apr 17, 2019
c843ef8
Enable the switching of scene to control mode, load the corresponding…
xiaomaogy Apr 18, 2019
d13e18a
Add exception for external brains and array-ify (#1971)
automata Apr 23, 2019
f736fed
Develop black format fix (#1998)
xiaomaogy Apr 29, 2019
17a4f67
[Gym] Added no_graphics argument (#1997)
vincentpierre Apr 29, 2019
31743fd
[Documentation] SetReward method (#1996)
vincentpierre Apr 30, 2019
814371e
[Documentation] Added information for the environments the trainer ca…
vincentpierre Apr 30, 2019
b0adecf
Format gym_unity using black
Apr 30, 2019
534ca8c
Merge pull request #2001 from Unity-Technologies/develop-fixgymblack
eshvk May 1, 2019
a85622c
Update Learning-Environment-Create-New.md (#1993)
shihzy May 1, 2019
e1d2b69
A couple fixes for recording demonstrations (#1999)
May 3, 2019
01651f1
Allow multiple visual observations (#2003)
GProulx May 6, 2019
d121527
Release video recorder (#1978)
LeSphax May 7, 2019
4e00306
Fix Demonstration recorder null reference bug (#1994)
awjuliani May 13, 2019
29c701b
First stage of ML Agents update to Barracuda 0.2.x
mantasp May 14, 2019
060d275
Update Learning-Environment-Executable.md (#2037)
shihzy May 15, 2019
6ed3104
Upgraded to Barracuda 0.2.1, fixes issues with discrete action models
mantasp May 16, 2019
ef630e5
Restored compatibility fixes for some Androids
mantasp May 21, 2019
c860bcb
Update Basic-Guide.md (#2076)
laurentopia May 29, 2019
8e41b6d
Fix broken code (#2091)
awjuliani May 30, 2019
f89b8ce
Fix failure on Academy Done() with parallel envs
May 21, 2019
1dd8b2f
Update pip and setuptools in CircleCI
May 30, 2019
c44aff0
Fix formatting for gym env
May 30, 2019
413513a
Fixed batch size for visual observations, Barracuda was mostly affect…
mantasp Jun 6, 2019
ff723a1
Added Barracuda 0.2.2
mantasp Jun 6, 2019
a0b2743
Removed duplicate resource
mantasp Jun 6, 2019
3e6ba78
Multiple LSTM cell handling added to Barracuda code path
mantasp Jun 6, 2019
2e3bcee
[Documentation] Clarify Create-New.md (#2100)
rsfutch77 Jun 8, 2019
6d8c494
Merge pull request #2049 from Unity-Technologies/develop-barracuda-0.2.0
mantasp Jun 11, 2019
c5226f6
Clear cumulative_returns_since_policy_update (#2120)
Jun 11, 2019
4ad65fa
Doc/comment cleanup - Fix some occurrences of 'the the' (#2119)
Jun 11, 2019
bce6e29
run black on ml-agents (#2125)
Jun 12, 2019
9c354a6
use yaml.safe_load instead of yaml.load (#2124)
Jun 12, 2019
b903ef4
Change guide to not extend two bases classes in c# (#2104)
TashaSkyUp Jun 12, 2019
04168ae
Barracuda - remove unused private variable (#2128)
Jun 13, 2019
672052a
Automate meta file check (#2133)
Jun 14, 2019
137e7b0
Bumping the ml-agents, ml-agents-envs, gym_unity versions
xiaomaogy Jun 20, 2019
655cf59
Release v0.8.2 doc fixes (#2155)
shihzy Jun 21, 2019
4859a10
Fixed the import issue (#2158)
xiaomaogy Jun 21, 2019
863af27
Release v0.8.2 update models (#2178)
xiaomaogy Jun 24, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.1
version: 2.0

jobs:
build:
Expand All @@ -20,16 +20,18 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
cd ml-agents-envs && pip install -e .
cd ../ml-agents && pip install -e .
pip install pytest-cov==2.6.1 codacy-coverage==1.3.11
pip install black pytest-cov==2.6.1 codacy-coverage==1.3.11
cd ../gym-unity && pip install -e .

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "ml-agents/setup.py" }}

- run:
name: Run Tests for ml-agents and gym_unity
command: |
Expand All @@ -38,6 +40,21 @@ jobs:
pytest --cov=mlagents --cov-report xml --junitxml=test-reports/junit.xml -p no:warnings
python-codacy-coverage -r coverage.xml

- run:
name: Check Code Style for ml-agents and gym_unity using black
command: |
. venv/bin/activate
black --check ml-agents
black --check ml-agents-envs
black --check gym-unity

- run:
name: Verify there are no hidden/missing metafiles.
# Renaming files or deleting files can leave metafiles behind that makes Unity very unhappy.
command: |
. venv/bin/activate
python utils/validate_meta_files.py

- store_test_results:
path: test-reports

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/UnitySDK/[Uu]nity[Pp]ackage[Mm]anager/
/UnitySDK/Assets/AssetStoreTools*
/UnitySDK/Assets/Plugins*
/UnitySDK/Assets/Gizmos*
/UnitySDK/Assets/Demonstrations*

# Tensorflow Model Info
Expand Down Expand Up @@ -72,6 +71,7 @@
*.pyc
*.idea/misc.xml
*.idea/modules.xml
*.idea/
*.iml
*.cache
*/build/
Expand All @@ -97,3 +97,6 @@ ml-agents-protobuf/Grpc*
# Ignore PyPi build files.
dist/
build/

# Python virtual environment
venv/
5 changes: 1 addition & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,4 @@ PR explaining the nature of the environment and task.

## Style Guide

When performing changes to the codebase, ensure that you follow the style guide
of the file you're modifying. For Python, we follow
[PEP 8](https://www.python.org/dev/peps/pep-0008/).
For C#, we will soon be adding a formal style guide for our repository.
When performing changes to the codebase, please ensure that all python code is reformatted using the [black](https://github.com/ambv/black) formatter. For C#, we will soon be requirements for style and formatting.
8 changes: 8 additions & 0 deletions UnitySDK/Assets/Gizmos.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions UnitySDK/Assets/ML-Agents/Editor/Builder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#if UNITY_CLOUD_BUILD

namespace MLAgents
{
public static class Builder
{
public static void PreExport()
{
BuilderUtils.SwitchAllLearningBrainToControlMode();
}
}
}

#endif
3 changes: 3 additions & 0 deletions UnitySDK/Assets/ML-Agents/Editor/Builder.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions UnitySDK/Assets/ML-Agents/Editor/BuilderUtils.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#if UNITY_CLOUD_BUILD

using System.Linq;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.IO;

namespace MLAgents
{
public static class BuilderUtils
{
public static void SwitchAllLearningBrainToControlMode()
{
Debug.Log("The Switching to control mode function is triggered");
string[] scenePaths = Directory.GetFiles("Assets/ML-Agents/Examples/", "*.unity", SearchOption.AllDirectories);
foreach (string scenePath in scenePaths)
{
var curScene = EditorSceneManager.OpenScene(scenePath);
var aca = SceneAsset.FindObjectOfType<Academy>();
if (aca != null)
{
var learningBrains = aca.broadcastHub.broadcastingBrains.Where(
x => x != null && x is LearningBrain);
foreach (Brain brain in learningBrains)
{
if (!aca.broadcastHub.IsControlled(brain))
{
Debug.Log("Switched brain in scene " + scenePath);
aca.broadcastHub.SetControlled(brain, true);
}
}
EditorSceneManager.SaveScene(curScene);
}
else
{
Debug.Log("scene " + scenePath + " doesn't have a Academy in it");
}
}
}
}
}

#endif
3 changes: 3 additions & 0 deletions UnitySDK/Assets/ML-Agents/Editor/BuilderUtils.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion UnitySDK/Assets/ML-Agents/Editor/HeuristicBrainEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void CheckIsDecision(HeuristicBrain brain)
{
Debug.LogError(
"Instance of " + brain.decisionScript.name + " couldn't be created. " +
"The the script class needs to derive from Decision.");
"The script class needs to derive from Decision.");
brain.decisionScript = null;
}
}
Expand Down
29 changes: 0 additions & 29 deletions UnitySDK/Assets/ML-Agents/Editor/NNModelImporter.cs

This file was deleted.

4 changes: 2 additions & 2 deletions UnitySDK/Assets/ML-Agents/Editor/Tests/DemonstrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class DemonstrationTests : MonoBehaviour
[Test]
public void TestSanitization()
{
const string dirtyString = "abc123&!@";
const string dirtyString = "abc1234567&!@";
const string knownCleanString = "abc123";
var cleanString = DemonstrationRecorder.SanitizeName(dirtyString);
var cleanString = DemonstrationRecorder.SanitizeName(dirtyString, 6);
Assert.AreNotEqual(dirtyString, cleanString);
Assert.AreEqual(cleanString, knownCleanString);
}
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
Expand All @@ -74,3 +78,4 @@ Material:
m_Colors:
- _Color: {r: 0.10980392, g: 0.6039216, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
Expand All @@ -74,3 +78,4 @@ Material:
m_Colors:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions UnitySDK/Assets/ML-Agents/Examples/Startup.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading