deepinsight / deepinsight/insightface
When I use Python 3 training and do not use the instruction "- target", the following error occurs. What is the reason for kneeling
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
header0 label [1. 2.]
id2range 1
0 0 2
c2c_stat [0, 1]
0
rand_mirror 1
(3,)
Traceback (most recent call last):
File "train.py", line 1025, in
main()
File "train.py", line 1022, in main
train_net(args)
File "train.py", line 887, in train_net
data_set = verification.load_bin(path, image_size)
File "eval/verification.py", line 185, in load_bin
bins, issame_list = pickle.load(open(path, 'rb'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
the commond is CUDA_VISIBLE_DEVICES='0' python -u train.py --network r100 --data-dir /home/xl/1mxnetinsight/insightface-master/datasets/17_faces_datasets --ckpt 2 --version-se 0 --per-batch-size 3 --prefix /media/xl/绿叶启动盘/save/model --verbose 10 --lr 0.00001
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with train.py at line 887, where verification.load_bin is called, then inspect eval/verification.py at line 185 and the path supplied by --data-dir. Reproduce the command with Python 3 and examine the pickle input that triggers the UnicodeDecodeError. Done means training without the stated instruction no longer fails at pickle.load.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100