Download WebFace42M from https://www.face-benchmark.org/download.html.
Note: preshuffled rec is very important to DALI, and rec without preshuffled can cause performance degradation, origin insightface style rec file do not support Nvidia DALI, you must follow this command mxnet.tools.im2rec to generate a pre-shuffle rec file.
# 1) create train.lst using follow command
python -m mxnet.tools.im2rec --list --recursive train "Your WebFace42M Root"
# 2) create train.rec and train.idx using train.lst using following command
python -m mxnet.tools.im2rec --num-thread 16 --quality 100 train "Your WebFace42M Root"
Finally, you will get three files: train.idx
, train.rec
, train.idx
. which train.idx
, train.rec
are using for training.