Closed RyanRTJJ closed 3 years ago
I think this means that your input images are not of shape 64x64x3. Can you verify that's the case?
Closing due to inactivity. Feel free to comment below if this you still have a question about this.
Just stumbled on this issue and I guess OP has solved the issue, but in case someone runs into a similar issue: My guess is that the logdir had a checkpoint from an older experiment on another task which was loaded (--logdir ~/logdir/atari_pong/dreamerv2/1 suggests the logdir is being reused) causing a mismatch between action space sizes.
Hi authors, thanks for your paper and code. I was trying to test dreamerv2 on retro games, and I spent a really long time looking at the code and trying to debug, but I have no clue what's going on.
I ran
python3 dreamerv2/train.py --logdir ~/logdir/atari_pong/dreamerv2/1 --configs defaults retro --task retro_Airstriker-Genesis
, and the output seemed good for a while:This shows that I parsed the arguments correctly, and also hooked up gym-retro, and edited the
configs.yaml
andenvs.py
files to support retro.But after some iterations it seems, I run into this error:
So I printed the shapes of these variables in
nets.py:105 img_step
by inserting theprint
statements in this function as shown:And these are the terminal outputs when I run the code:
Any clue as to why the prev_action.shape changed from 18 to 12? Thanks for getting through this really long post. I really appreciate your help! :)