jerrodparker20 / adaptive-transformers-in-rl

Adaptive Attention Span for Reinforcement Learning
130 stars 14 forks source link

train.py on colab, using snippets #12

Closed yhg8423 closed 4 years ago

yhg8423 commented 4 years ago

Hi, I have a question about snippets in README. I plan to use your code in colab. To test the code, I executed train.py with your snippets. However, train.py is not working well. The result showed that loss is infinite and stats are empty. Could I know how to solve the problem?

shaktikshri commented 4 years ago

Hi @yhg8423 , the code runs with learners in one set of threads and actors in another parallel set of threads. The stats are reported from the main thread which periodically collects stuff from learner threads buffers. The only reason for stats being empty is when any of the threads run into an exception. Its hard to comment on your colab usage without seeing what snippets you are running. I'd suggest you to setup the environment (for pong) and run the entire train.py with the arguments we've provided in the readme.

yhg8423 commented 4 years ago

Oh, I see. I will check it. Thank you for your answer!

shaktikshri commented 4 years ago

@yhg8423 let us know if you still face issues. We're closing this for now.

ghost commented 4 years ago

When I used just one actor, I still get Steps 0 @ 0.0 SPS. Loss inf. Stats.