insightface icon indicating copy to clipboard operation
insightface copied to clipboard

How to convert my custom dataset to rec file with rec_builder.py?

Open leduy99 opened this issue 3 years ago • 2 comments

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: image Is there any tutorial on how to train a new recognition model? :(

leduy99 avatar Sep 13 '21 17:09 leduy99

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.

nttstar avatar Sep 14 '21 04:09 nttstar

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

aidansmyth95 avatar May 07 '24 00:05 aidansmyth95