You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throws the error: ValueError: insecure string pickle
Loading the pickle load on that file using instead my Python 3.6 environment gives:
>>> pickle.load(open("/home/ben/software/DeepOcclusion/VGG/models/paramsVGG.pickle","rb"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
And if I change encoding to latin1/bytes gives:
pickle.load(open("/home/ben/software/DeepOcclusion/VGG/models/paramsVGG.pickle","rb"))
Traceback (most recent call last):
File "", line 1, in
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Which has already been reported and closed in #9 but I am unsure what the solution was.
The text was updated successfully, but these errors were encountered:
Well, in python 3.6, I just modify my code as: pickle.load(open("/home/ben/software/DeepOcclusion/VGG/models/paramsVGG.pickle","rb"),encoding = 'bytes') and it works.
Running python 2.7 on ubuntu, running the first notebook RunParts.ipynb I get an error:
Running
parts_predictor.run_inference(bg_pretrained = True,regression_pretrained = True,verbose = True)
/DeepOcclusion/VGG/VGGNet.py
paramsValuesVGG = pickle.load(open(os.path.dirname(__file__)+"/models/paramsVGG.pickle","rb"))
Throws the error:
ValueError: insecure string pickle
Loading the pickle load on that file using instead my Python 3.6 environment gives:
And if I change encoding to latin1/bytes gives:
Which has already been reported and closed in #9 but I am unsure what the solution was.
The text was updated successfully, but these errors were encountered: