Replayloader doesn't work for Atari #11
Comments
Hi, I think before starting sampling from the replay buffer you need to have at least So make sure to modify your code in such a way that you already have enough data collected. |
Curiously, I tried that, even set the number of seed frames to |
Oh, looks like I found the problem. It was something unrelated. |
Sorry if this is a lot of trouble to answer, but I've implemented a version of DrQ with DQN, including double Q learning and Duel Q Networks like in the original DrQ paper. Same hyperparams, the only difference is no terminal states since I'm using this code's replay buffer (although I guess it wouldn't be too hard to add them). The only thing is, I'm not able to reproduce the reported Atari results in that paper... Are there any other additions I should consider besides the double/duel Q learning and matching up hyperparams? I store the "episodes" in 100-frame increments for the replay buffer, but the actual training proceeds normally until the episode is really completed. Also, exploration and intensity augmentation are same as in DrQ paper, too. I even borrowed from DrQv2 and made the action sampling "noisy" via an increasing softmax temperature and categorical sampling for training instead of just taking the max. |
Are you using the exact Atari wrapper than described in Rainbow? For example, stick actions, terminate on life loss, etc.? Those are very important to get right. Also for Atari we used additional data augmentation in a form of noise. It is hard to pin point exactly what is the issue with your code, but I'm happy to take a look at it and see if I can spot anything. Please email me at denisyarats@cs.nyu.edu if you want me to take a look at your code. |
I'm using a slightly different Atari wrapper. If it's alright, I'll send you the code, because I'm having trouble reproducing the results. Any chance you have a script handy that I can use to compile results output by this repo? Currently, I've just been manually looking at the eval CSVs. Just checking, would save me some time having to code one up from scratch. |
Here is a sample script that you can use to plot csvs: https://github.com/denisyarats/pytorch_sac/blob/master/data/sac.ipynb Ok, send me our your code and I can take a look. |
Just sent over the code. I'm pretty shell-shocked by how low the performance turned out:
|
Hi, did you ever get a chance to look at this code? |
Have you tried using this replay loader with Atari? I keep getting this error unless I set the num replay workers to 1:
Edit: Sorry, originally posted the wrong trace.
The text was updated successfully, but these errors were encountered: