yanght321 / Detailed3DFace

MIT License
164 stars 26 forks source link

Pickle error #8

Open yfji opened 3 years ago

yfji commented 3 years ago

Hi, thanks for your wonderful work! I have some questions when running main.py. When I load "front_texcoords.pkl", pickle returns an error "ValueError: could not convert string to float" When I load "front_faces.pkl", pickle returns an error "_pickle.UnpicklingError: the STRING opcode argument must be quoted" The other .pkl files are ok. I am using Ubuntu 18.04, Python 3.6 and PyTorch 1.6.0 Thank you very much!

mjvanderboon commented 2 years ago

Hi,

I am running into the same issue trying to load these files. Have you found a solution yet?

heyoon01 commented 2 years ago

Having same problems.

heyoon01 commented 2 years ago

https://stackoverflow.com/a/64405384/11129628 helps

Edit: This helps in reading the file, but not properly. Still cannot get the right values.

xiaolin-mt commented 1 year ago

I ran into the same error. It seems not caused by python version as I got the same error with python 3.6, 3.7 and 3.9. Could someone share a readable file with other formats? Thanks!

xiaolin-mt commented 1 year ago

I ran into the same error. It seems not caused by python version as I got the same error with python 3.6, 3.7 and 3.9. Could someone share a readable file with other formats? Thanks!

predef.zip I finally make it to read the file with python2.7 and save them in JSON files. I share the transferred files here for those who need them.