clcarwin / sphereface_pytorch

A PyTorch Implementation of SphereFace.
MIT License
714 stars 172 forks source link

unicode error #25

Open sevenHsu opened 6 years ago

sevenHsu commented 6 years ago

Thanks for your contribution firstly. I ran train.py on win10 based on pytorch0.3. Traceback (most recent call last):

**File "train.py", line 15, in

from matlab_cp2tform import get_similarity_transform_for_cv2
File "D:\Program Files\git_repository\sphereface_pytorch\matlab_cp2tform.py", line 167
"""
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1266-1267: truncated  \UXXXXXXXX escape**

How to solve this issue?Thank you.

duanzhibin commented 6 years ago

I meet the same problem, have you solved it? Thanks, if you can share a solution for working around.

sevenHsu commented 6 years ago

@131Prince Yes,I have solved this problem.I just update my Pytorch to V2.0 before this issue been solved.Maybe you need to check the version of your Pytorch .

duanzhibin commented 6 years ago

@sevenHsu Thank you at first.But my Pytorch version is 0.3.2,it is the latest vision.

amjltc295 commented 6 years ago

@131Prince I removed all comments starting with '%' (all Matlab codes) and solved the problem.

hvthaibk commented 6 years ago

Replacing 'X\U' by 'X \ U' solved the problem for me.