oawiles / X2Face

Pytorch code for ECCV 2018 paper
MIT License
246 stars 58 forks source link

UnicodeDecodeError #22

Closed melih-unsal closed 5 years ago

melih-unsal commented 5 years ago

Hi I get an error when I run jupyter notebook

UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 0: ordinal not in range(128)

caozhenxiang-kouji commented 5 years ago

It seems that the model is trained in python2. You will encounter this problem if you run it with python3.

BaldrLector commented 5 years ago

add param: encoding = 'latin1'

akoepke commented 5 years ago

We have updated the code and installation instructions so that you can now use the code with python 3.7 and pytorch 0.4.1 in the 'py37_pytorch_0.4.1' branch, you will need to re-download the models from the project page again.