rll / rllab

rllab is a framework for developing and evaluating reinforcement learning algorithms, fully compatible with OpenAI Gym.
Other
2.91k stars 799 forks source link

Could not open "params.pkl" after running trpo_cartpole_pickled.py #169

Open Gin8787 opened 7 years ago

Gin8787 commented 7 years ago

Hi, I have just installed rllab envirtonment, and I run the example code trpo_cartpole_pickled.py successfully. And get the log file "debug.log params.pkl progress.csv variant.json". And when I am trying to load the "params.pkl" file, I failed.

Here is the code:

import pickle f = open('params.pkl','rb' info = pickle.load(f)

And the error is :

UnpicklingError Traceback (most recent call last)

in () ----> 1 info = pickle.load(f) UnpicklingError: invalid load key, 'x'. So is the method that I tried to load file wrong?
dementrock commented 7 years ago

Try using joblib instead of pickle?