clcarwin / sphereface_pytorch

A PyTorch Implementation of SphereFace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unicode error

sevenHsu opened this issue · comments

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.

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

@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 .

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

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

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