deepinsight / deepinsight/insightface
arcface_oneflow 识别执行python3 tools/mx_recordio_2_ofrecord.py --data_dir dataset/faces_emore --output_filepath dataset/faces_emore/ofrecord/train,后报错Traceback (most recent call last): File "tools/mx_recordio_2_ofrecord.py", line 134, in <module> main(parse_arguement(sys.argv[1:])) File "tools/mx_recordio_2_ofrecord.py", line 123, in main img_data["label"] = int(header.label[0]) TypeError: 'float' object is not subscriptable
Open
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
This issue has no description.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with tools/mx_recordio_2_ofrecord.py at lines 123-134 and reproduce the command against dataset/faces_emore. Inspect the value assigned to img_data["label"] and the preceding header handling; done means the conversion completes without the reported TypeError and produces the requested OFRecord output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100