Closed JankyOo closed 5 years ago
Hello,
are you working on windows?
See warning in the doc to solve your problem ;) (you should wrap your code in a if __main__:
)
Note: as also stated in the doc, the current implementation of GAIL does not properly supports with images (but we welcome PR in that direction ;) )
Thanks a lot for the quick response, it helped me a lot. The Demo is working now
And yes i am using Windows to test, but will run the code on a Linux-Server for training.
As far as GAIL is not properly working with Images, i wonder why for example A2C is recording images while generate_expert_traj. Anyway, i want to produce my "expert data" by playing the game myself while recording it in a .npz-file. Is there any documentation about the structure of the .npz-file GAIL expects?
The recording of images is made for the pretraining with behavior cloning (which is different from gail). And yes, there is documentation for that, please look at the pretraining and gail sections. You can also directly look at the source code in that case. Closing this issue then.
First of all thanks a lot for this awesome project. Stable-Baselines helps me a lot!
I try to get a GAIL Agent going to get experience with Inverse Reinforcement Learning in combination of Gym and/or Retro. Therefore i want to get a Super Mario Agent running.
Unfortunatly i cant even run the example code.
The code runs twice. From the beginning till
model.learn(total_timesteps=1000)
. After the learning it doesn't reachprint("PrintDebug_2")
but starts over atprint("PrintDebug_1")
. Then it runs till the learning step again but crashes after that with given error message.As far as i found out with debugging something with 'popen' multiprocessing doesn't work correctly. It seems to somehow mix up the child processes or something similar.
Code
Error Message
System Info