YunzhuLi / InfoGAIL

[NIPS 2017] InfoGAIL: Interpretable Imitation Learning from Visual Demonstrations
MIT License
175 stars 63 forks source link

some issues about keras.initializations in the code #8

Open LinBornRain opened 7 years ago

LinBornRain commented 7 years ago

when I try to Run with pretrained weights(python wgail_info_0/drive.py),it occurs like below: Traceback (most recent call last): File "/home/lunatic/下载/InfoGAIL-master/wgail_info_0/models.py", line 6, in from keras.initializations import normal, identity, uniform ImportError: No module named initializations

so I try to modify 'keras.initializations' into 'keras.initializers',it still fail to run the code.

can u help me fix this problem. thanks for sharing the code and it's interesting to see the paper running experiment in torcs BTW!

xxx09 commented 6 years ago

@LinBornRain your keras version may be 2.x.x, while the Requirements is Keras 1.2.2, you can try: sudo pip install keras==1.2.2

LinBornRain commented 6 years ago

after try ur advice and it solves my problem! THANKS A LOT!