Skip to content

Comments

sovle the prepare_data error#150

Open
Light-- wants to merge 1 commit intoTreB1eN:masterfrom
Light--:patch-1
Open

sovle the prepare_data error#150
Light-- wants to merge 1 commit intoTreB1eN:masterfrom
Light--:patch-1

Conversation

@Light--
Copy link

@Light-- Light-- commented Jul 8, 2020

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

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--
Copy link
Author

Light-- commented Jul 8, 2020

you can refer to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant