insightface
insightface copied to clipboard
How to convert my custom dataset to rec file with rec_builder.py?
Hi, since there is no guide here so I think at first I must have a training dataset just like faces_emore but when I use common/rec_builder.py, I got this:
Is there any tutorial on how to train a new recognition model? :(
You can now use https://github.com/deepinsight/insightface/blob/master/python-package/insightface/data/rec_builder.py Just call add() to add one identity with its images or add_image() to append one image with its label. All images should be already aligned.
This rec_builder worked for me, while the above one did not.
Bizarre how there are different versions in the same repo and zero documentation on why some work and some don't.
https://github.com/deepinsight/insightface/blob/master/recognition/arcface_mxnet/common/rec_builder.py