Open yunfei-shi opened 5 years ago
I had the same issue. Python 3's pickle requires encoding specified. https://github.com/ohtake/VMZ/commit/41800f475ef09624ecf1461bb19f1e5ee2edf0ac will help you to run VMZ on Python 3.
I had the same issue. Python 3's pickle requires encoding specified. ohtake@41800f4 will help you to run VMZ on Python 3.
it works now! thanks!
I'm using python3.6 and run the extract_features.py, but with error of UnicodeDecodeError, I changed the code 'import cPickle as pickle' to 'import pickle' in lib/utils/model_loader.py as there is no cPickle in python3, does this make de mistake?
the error info: File "tools/extract_features.py", line 328, in
main()
File "tools/extract_features.py", line 323, in main
ExtractFeatures(args)
File "tools/extract_features.py", line 153, in ExtractFeatures
root_gpu_id=gpus[0]
File "/home/ubuntu/demos/VMZ/lib/utils/model_loader.py", line 79, in LoadModelFromPickleFile
blobs = pickle.load(fopen)
File "/home/ubuntu/miniconda3/envs/vmz/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte