Closed Chazzz closed 5 years ago
Hi @Chazzz
Thanks for highlighting this issue. I did some digging and it seems that the PR that @davidsandberg had kindly submitted earlier to fix memory leaks for DoomRNN had some issues on CarRacing experiment causing it to not load the weights of the VAE and RNN from the JSON files. It's fixed now and I think it should work for CarRacing, please try again.
Hi @hardmaru
Thank you so much for your help, I'll let the results speak for themselves. Got 910 on first run too!
FYI from a blank environment I needed to install scipy, pillow, and box2d-py in addition to tensorflow(-gpu) and gym==0.9.4.
The same fix from 0a5a10cd80e44c1dd8c28e5e50d1a9501a4317d0 needs to be applied to doomrnn.py
, too (i.e. delete each of the 3 occurences of if var.name.startswith('mdn_rnn'):
and if var.name.startswith('conv_vae'):
).
python3 model.py render log/carracing.cma.16.64.best.json
executes without errors, but for some reason the car wanders slowly and aimlessly. I've tracked it down topython3 dream_model.py log/carracing.cma.16.64.best.json
generating a grey screen. My theory is that the two errors are correlated, but I'm a little lost as to what would cause the grey screen.The default box2d install gives an error related to a swig dependency mismatch on runtime, so I cloned the box2d repo and ran setup.py clean/build/install.
Code run:
python3 dream_model.py log/carracing.cma.16.64.best.json
Expected output: Virtual data generated by model rendered to screen in popup
Actual output: Popup with 'dream_model.py' title but gray image
Stack: