Skip to content

Release 0.10.0 #2648

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 69 commits into from
Sep 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
835c736
Fixed small typo in documentation.
DanAmador Aug 20, 2019
2b64e45
Merge pull request #2470 from Unity-Technologies/release-0.9.2
xiaomaogy Aug 29, 2019
982f01e
Merge pull request #2451 from DanAmador/patch-1
xiaomaogy Aug 29, 2019
9cde007
Fixed typo in Training-Imitation-Learning.md (#2485)
AcelisWeaven Sep 3, 2019
4b1f1a3
python coverage: specify dirs, exclude test files (#2473)
Sep 3, 2019
fe97df8
Change update buffer to float32 instead of float64 (#2461)
Sep 3, 2019
863610b
Fix bug with construct_curr_info and test
Sep 4, 2019
77f105c
Add more tests
Sep 4, 2019
2a4724d
Add 2 visual obs test
Sep 4, 2019
5566760
Fix bug with construct_curr_info (#2490)
Sep 4, 2019
3d324db
Minor fix to link to GAIL reward signal doc (#2435)
shihzy Sep 4, 2019
d150c51
initialize trainer step count (#2498)
Sep 5, 2019
5cd2118
Add Soft Actor-Critic as trainer option (#2341)
Sep 6, 2019
784c3ef
Fix Baselines gym_unity example to work with the latest Baselines (#2…
qfettes Sep 6, 2019
5ada924
Renamed "StepInfo" to "EnvironmentStep"
Aug 19, 2019
035045e
Merge pull request #2516 from Unity-Technologies/master
Sep 9, 2019
8892581
Delete VisualBanana
Sep 9, 2019
31529b8
unit test - don't use global random generator (#2521)
Sep 9, 2019
bb82962
Merge pull request #2522 from Unity-Technologies/develop-cleanupconfig
xiaomaogy Sep 9, 2019
ec913ba
Use numpy for random sample in buffer (#2524)
Sep 10, 2019
ebe7e7c
Update the offline_bc_config path
xiaomaogy Sep 10, 2019
7deade9
Merge pull request #2526 from Unity-Technologies/develop-update-offli…
xiaomaogy Sep 10, 2019
7208853
Changing Training-RewardSignals.md --> Reward-Signals.md (#2525)
Sep 10, 2019
56ea0a8
Made the _check_environment_trains test a little more easy to pass so…
vincentpierre Sep 11, 2019
77c83cc
Fix determinism in unit test (#2530)
Sep 11, 2019
4a414cc
Reducing complexity on a number of classes. (#2480)
Sep 11, 2019
d79df88
Add a note on Custom messages about needing trainer changes (#2534)
Sep 11, 2019
27a4629
[memory] Fix for tensors not being disposed of. (#2541)
surfnerd Sep 11, 2019
a737e83
Fix run_id typing in trainer.py (#2537)
Sep 12, 2019
7fc5f54
Fixes missing camera resolution info in demos (#2523)
awjuliani Sep 12, 2019
884a662
Markdown link check in CI (#2543)
Sep 12, 2019
3d3a91c
Fix issue where SAC encoder type is always simple (#2548)
Sep 13, 2019
2107fdc
Fix crash when next_info is empty and using recurrent
Sep 13, 2019
c16eee4
Revert "Fix crash when next_info is empty and using recurrent"
Sep 13, 2019
bb479c9
[format] Format code whitespace with Unity Formatter. (#2550)
surfnerd Sep 13, 2019
0a2a095
Fix crash in construct_curr_info when next_info doesn't have any agen…
Sep 13, 2019
876d815
Add clearer message for bad permissions (#2539)
Sep 13, 2019
46f170b
[coding conventions] Change c# code to be compliant with Unity coding…
surfnerd Sep 13, 2019
602fe02
Enable learning rate decay to be disabled (#2567)
Sep 16, 2019
d1387ce
[coding conventions] Revert NNModelImporter rename and remove NonAllo…
surfnerd Sep 16, 2019
7248276
Develop allow python 3.7 (#2544)
Sep 16, 2019
92db4de
check for potentially bad env variables (#2540)
Sep 16, 2019
d98d9f9
Removed writing to UnitySDK.log from Academy/Changed UnityTimeOutExce…
andrewcoh Sep 17, 2019
102d0c5
fixed formatting
andrewcoh Sep 17, 2019
2a06b63
Develop remove academy done (#2519)
vincentpierre Sep 17, 2019
1f6492e
Normalize observations when adding experiences (#2556)
Sep 18, 2019
e594ba8
Fix flake8 import warnings (#2584)
Sep 18, 2019
b787e81
Allow mypy to reject incomplete defs for mlagents-envs (#2585)
Sep 18, 2019
88caccf
Merge pull request #2580 from Unity-Technologies/develop-removeUnityS…
andrewcoh Sep 19, 2019
e618318
Use argparse for arg parsing (#2586)
Sep 19, 2019
f3042b5
TensorFlowSharp is no more (#2590)
vincentpierre Sep 19, 2019
aa65274
Added option to use environment arguments in learn (#2594)
Sep 19, 2019
5fc2fb2
Fix issue exporting graph with multi-GPU (#2573)
Sep 19, 2019
8e580ff
Fix crash with VAIL + GAIL (#2598)
Sep 20, 2019
d5ea5af
image decompress timer (#2596)
Sep 20, 2019
97b9951
fix hang with multiple envs (#2600)
Sep 20, 2019
2e0bab8
When checking for the compatibility of the expert brain with the poli…
vincentpierre Sep 23, 2019
efc9d84
Develop yaml json loading errors (#2601)
Sep 24, 2019
98ea56a
ML-Agents Branding & Color Updates (#2583)
Hunter-Unity Sep 24, 2019
e557dab
Add note about using GPU inference for ResNet (#2607)
Sep 24, 2019
23404c0
Tick version of API and pypi packages to 10 (#2610)
Sep 24, 2019
4d3f2e5
Update project version to 2017.4.32 (#2613)
Sep 24, 2019
03453e1
Update Bouncer learning NN file (#2614)
Sep 24, 2019
6502feb
Record new demos for new envs (#2622)
Sep 25, 2019
75b149f
Update Migrating.md with note about environments (#2624)
Sep 25, 2019
62e8fb1
Remove Soccer .nn files (#2615)
Sep 26, 2019
f5b98ca
Improved SAC hyperparameters for Crawler, Walker (#2635)
Sep 27, 2019
83e3924
Fix spelling error in documentation (#2636)
Sep 27, 2019
600d94c
Fix visual hallway and visual pushblock brains and scenes. (#2645)
surfnerd Sep 30, 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
Prev Previous commit
Next Next commit
Removed writing to UnitySDK.log from Academy/Changed UnityTimeOutExce…
…ption to no longer read from UnitySDK.log
  • Loading branch information
andrewcoh committed Sep 17, 2019
commit d98d9f94d5adfbf0aaf77469aadc68c4fbcde84a
30 changes: 1 addition & 29 deletions UnitySDK/Assets/ML-Agents/Scripts/Academy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,6 @@ public abstract class Academy : MonoBehaviour
/// Pointer to the batcher currently in use by the Academy.
Batcher m_BrainBatcher;

/// Used to write error messages.
StreamWriter m_LogWriter;

/// The path to where the log should be written.
string m_LogPath;


// Flag used to keep track of the first time the Academy is reset.
bool m_FirstAcademyReset;

Expand Down Expand Up @@ -348,15 +341,6 @@ private void InitializeEnvironment()

var pythonParameters = m_BrainBatcher.SendAcademyParameters(academyParameters);
Random.InitState(pythonParameters.Seed);
Application.logMessageReceived += HandleLog;
m_LogPath = Path.GetFullPath(".") + "/UnitySDK.log";
using (var fs = File.Open(m_LogPath, FileMode.Append, FileAccess.Write, FileShare.ReadWrite))
{
m_LogWriter = new StreamWriter(fs);
m_LogWriter.WriteLine(System.DateTime.Now.ToString());
m_LogWriter.WriteLine(" ");
m_LogWriter.Close();
}
}

// If a communicator is enabled/provided, then we assume we are in
Expand Down Expand Up @@ -390,19 +374,7 @@ private void UpdateResetParameters()
customResetParameters = newResetParameters.CustomResetParameters;
}
}

void HandleLog(string logString, string stackTrace, LogType type)
{
using (var fs = File.Open(m_LogPath, FileMode.Append, FileAccess.Write, FileShare.ReadWrite))
{
m_LogWriter = new StreamWriter(fs);
m_LogWriter.WriteLine(type.ToString());
m_LogWriter.WriteLine(logString);
m_LogWriter.WriteLine(stackTrace);
m_LogWriter.Close();
}
}


/// <summary>
/// Configures the environment settings depending on the training/inference
/// mode and the corresponding parameters passed in the Editor.
Expand Down
31 changes: 2 additions & 29 deletions ml-agents-envs/mlagents/envs/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,8 @@ class UnityTimeOutException(UnityException):
"""
Related to errors with communication timeouts.
"""

def __init__(self, message, log_file_path=None):
if log_file_path is not None:
try:
with open(log_file_path, "r") as f:
printing = False
unity_error = "\n"
for line in f:
line = line.strip()
if (line == "Exception") or (line == "Error"):
printing = True
unity_error += "----------------------\n"
if line == "":
printing = False
if printing:
unity_error += line + "\n"
logger.info(unity_error)
logger.error(
"An error might have occured in the environment. "
"You can check the logfile for more information at {}".format(
log_file_path
)
)
except Exception:
logger.error(
"An error might have occured in the environment. "
"No UnitySDK.log file could be found."
)
super(UnityTimeOutException, self).__init__(message)

pass


class UnityWorkerInUseException(UnityException):
Expand Down