fengju514 / Expression-Net

Deep 3DMM facial expression parameter extraction
517 stars 122 forks source link

UnicodeDecodeError: 'ascii' codec can't decode byte in position X #18

Closed ghost closed 5 years ago

ghost commented 5 years ago

I am receiving constantly an annoying error when I am trying to run the approach. More specifically,

net_data = np.load("fpn_new_model/PAM_frontal_ALexNet.npy").item() (Pdb) c Traceback (most recent call last): File "/opt/libraries/anaconda3/envs//lib/python3.6/site-packages/numpy/lib/format.py", line 650, in read_array array = pickle.load(fp, **pickle_kwargs) UnicodeDecodeError: 'ascii' codec can't decode byte 0x8f in position 0: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_ExpShapePoseNet.py", line 292, in tf.app.run() File "/opt/libraries/anaconda3/envs//lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "main_ExpShapePoseNet.py", line 288, in main extract_PSE_feats() File "main_ExpShapePoseNet.py", line 100, in extract_PSE_feats net_data = np.load("fpn_new_model/PAM_frontal_ALexNet.npy").item() File "/opt/libraries/anaconda3/envs//lib/python3.6/site-packages/numpy/lib/npyio.py", line 421, in load pickle_kwargs=pickle_kwargs) File "/opt/libraries/anaconda3/envs//lib/python3.6/site-packages/numpy/lib/format.py", line 656, in read_array "to numpy.load" % (err,))

I am not sure what is happening but it seems that i has to do with loading the AlexNet file. What is strange is that 2 days before i run the code without issue with the same files. What can be wrong here?

zhaishengfu commented 4 years ago

the same error. do you have any answer for this problem?

piyushapple1998 commented 4 years ago

Please provide a solution to this error