Skip to content

sovle the prepare_data error#150

Open
Light-- wants to merge 1 commit into
TreB1eN:masterfrom
Light--:patch-1
Open

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

Conversation

@Light--

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

Copy link
Copy Markdown

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--

Light-- commented Jul 8, 2020

Copy link
Copy Markdown
Author

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