Closed cristinadobre closed 5 years ago
Hi @cristinadobre, we fixed this bug back in 0.9.1. Have you upgraded the Python package to the latest version?
Hi @ervteng! I've cloned the repo and installed the packages using:
cd ml-agents-envs
pip install -e .
cd ..
cd ml-agents
pip install -e .
Is this what you mean?
Hi @ervteng! I've cloned the repo and installed the packages using:
cd ml-agents-envs pip install -e . cd .. cd ml-agents pip install -e .
Is this what you mean?
I've also created another virtual environment and followed the steps from here . Unfortunately I still get that error.
Yes, that looks fine! We've actually been able to reproduce your issue and are looking into it - it's been logged with internal tracking number MLA-93.
In the meantime, you can achieve something similar by using PPO+LSTM+GAIL. It will train slower but should achieve a better result. See: https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Training-Imitation-Learning.md
Thank you for the quick reply @ervteng! I'll look into doing the PPO+LSTM+GAIL for now!
This issue has been fixed in our develop
branch - closing the issue for now. Thanks for reporting it!
P.S. We do consider BC a "legacy" feature that will be deprecated soon. PPO+GAIL and PreTraining can achieve the same results - and we suggest using that moving forward.
Thanks for sorting it out! I'll check out the develop
branch and consider using the proposed method.
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.
Hi! I'm trying to train an agent with behaviour cloning (imitation learning) with the use_recurrent (LSTM) feature active. For some reason it doesn't work, the error coming from tensorflow_to_barracuda.py file when it's trying to convert the model into an .nn one. I have replicated this using one of the imitation learning examples from the git repo (HallwayIL) by changing the 'use_recurrent' to be equal to true in the .yaml file. It works just fine, both in my project and in the examples if I have the use_recurrent set to false. I've tested on other example scenes that uses LSTM with ppo and that works fine too. Any idea why this is happening and how could I use LSTM with imitation learning?
More info below:
This is the error from the terminal:
the .yaml file looks like this:
I run this on a windows machine with the latest version of ML agents ( from master branch cloned today). Python version is 3.6 and Unity version is 2019.1.3f1
The frozen_graph_def.pb file can be downloaded from here
Thank you!