return:
Traceback (most recent call last):
File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 271, in
initial_weights=initial_weights)
File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 237, in train
test_xs, test_ys = unzip(list(read_data("test/*.png"))[:50])
File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 66, in read_data
im = cv2.imread(fname)[:, :, 0].astype(numpy.float32) / 255.
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc8f' in position 14: surrogates not allowed
what can i do ? i still find the bug but don't solve it.
code: def read_data(img_glob): for fname in sorted(glob.glob(img_glob)):
fname = fname.decode('utf-8')
return: Traceback (most recent call last): File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 271, in
initial_weights=initial_weights)
File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 237, in train
test_xs, test_ys = unzip(list(read_data("test/*.png"))[:50])
File "/home/yu/Templates/E2E-detection-and-track/deep-anpr/train.py", line 66, in read_data
im = cv2.imread(fname)[:, :, 0].astype(numpy.float32) / 255.
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc8f' in position 14: surrogates not allowed
what can i do ? i still find the bug but don't solve it.