Closed bitzoic closed 4 years ago
Hi.
Please use the template for issues that is provided when creating a github issue. If none of the templates fit your issue, you should post on the Unity Forums. The error you are getting seems to come from parsing the yaml config file as suggested by
File "c:\users\thepr\appdata\local\programs\python\python36\lib\site-packages\yaml\__init__.py", line 162, in safe_load
return load(stream, SafeLoader)
Yaml is a rather capricious format, you need to be careful about indent for example. Make sure your yaml file is formatted exactly like the ones provided in our example environments :
Pyramids:
summary_freq: 30000
time_horizon: 128
batch_size: 128
buffer_size: 2048
hidden_units: 512
num_layers: 2
beta: 1.0e-2
max_steps: 1.0e7
num_epoch: 3
reward_signals:
extrinsic:
strength: 1.0
gamma: 0.99
curiosity:
strength: 0.02
gamma: 0.99
encoding_size: 256
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hello, I am attempting to train my agent using curiosity and have added curiosity to the reward signals in the trainer_config. After adding the curiosity section I now am unable to being training. If I remove it, it works perfectly fine again.
I am using Python 3.6, ML-Agents 0.14.1, and Unity 2019.2.8f1.
This is the error I am getting in the command prompt after entering "mlagents-learn config/trainer_config.yaml --run-id=eigthRun --train --time-scale 1" to train:
This is what my trainer_config looks like:
trainer: ppo batch_size: 256 beta: 5.0e-3 buffer_size: 4096 epsilon: 0.2 hidden_units: 256 lambd: 0.95 learning_rate: 5.0e-4 learning_rate_schedule: constant max_steps: 1e7 memory_size: 256 normalize: false num_epoch: 3 num_layers: 2 time_horizon: 64 sequence_length: 64 summary_freq: 10000 use_recurrent: false vis_encode_type: simple reward_signals: extrinsic: strength: 1.0 gamma: 0.99 curiosity: strength: 0.02 gamma: 0.99 encoding_size:
I am unsure of where to go from here. Thank you!