TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.72k stars 418 forks source link

sovle the prepare_data error #150

Open Light-- opened 3 years ago

Light-- commented 3 years ago

when convert bin datasets to folders, it will report:

Traceback (most recent call last):
  File "prepare_data.py", line 12, in <module>
    load_mx_rec(rec_path)
  File "/home/user1/InsightFace_Pytorch/data/data_pipe.py", line 92, in load_mx_rec
    label = int(header.label)
TypeError: only size-1 arrays can be converted to Python scalars
Light-- commented 3 years ago

you can refer to this