-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BadZipFile when running PPO2. #109
Comments
Hello, The issue seems to come from cloudpickle due to a change in internal python3 API. It should work with python 3.6 and tensorflow 1.8.0+ |
Thanks for your reply.
-import tensorflow as tf
+import tensorflow.compat.v1 as tf I currently patched
I will try to run it with an older Python version.
It's really weird that only
|
nice, but this probably won't work with the contrib imports. You might take a look at hill-a/stable-baselines#366 and hill-a/stable-baselines#984
?
Probably because the model was saved using the old format: https://github.com/hill-a/stable-baselines/blob/master/stable_baselines/common/base_class.py#L676 See documentation: https://stable-baselines.readthedocs.io/en/master/guide/save_format.html
Look at the linked issue and at DLR-RM/stable-baselines3#172, cloudpickle fail for only some objects like learning rate schedules (defined as lambdas) which are not present in a2c, acer or acktr. |
Thanks for the info.
This is the solution to my issue. Version incompatibility for playing back the recorded plks. I assume that it will work when I record new ones on my setup. It is very unfortunate that baselines sees this extensive forking without a clear upstream and maintainership.
I was describing This looks interesting, unfortunately this is again some fork and not a branch that will get upstreamed: |
?
Yep, it is not a fork but the next version of Stable-Baselines, same API but much cleaner codebase (and so much easier to maintain and extend).
oh, it's not a fork but an experimental repo that I made while we were thinking about the future of SB (see hill-a/stable-baselines#733) |
Describe the bug
I can't run anything using the ppo2 algo.
The file that it tries to open
trained_agents/ppo2/CartPole-v1.pkl
is not a valid zip file.It produces a
zipfile.BadZipFile: File is not a zip file
exception.a2c
,acer
andacktr
seem work, even though thepkl
files there are also invalid zip files.The problem seems to be that it wants to open the
pkl
s as zip file forppo2
.System Info
Describe the characteristic of your environment:
pip install -e .
from git, with TF2 compatibility patchesI use CPU
3.8.5
2.3.0
0.15.3
The text was updated successfully, but these errors were encountered: