TensorFlow r1.8 or above.
NCCL2 or above
- Basic train & feature extracting pipeline for deep face recognition.
- Stable and efficient Multi-GPU training support.
- TensorFlow Dataset API support for efficient I/O from Caffe style lists.
- Random mirror/rotation/brightness/contrast/hue(RGB only)/saturation(RGB only) data augmentation.
- Network support: ResNeXt, MobileNet, ShuffleNet, SENet, SphereFaceNet, LightCNN(coming soon).
- Loss support: center loss, triplet loss, A-softmax loss*, Coco Loss(coming soon).
- Automatic GPU selection. (utils/gpu_select.py)
Results on mainstream face recognition benchmarks are coming soon.
* As far as we know, our code is the first A-softmax loss implementation in TensorFlow. @shangwenxiang claims to reproduce the LFW accuracy 99.4% on SphereFaceNet-20 with our implementation. It exceed the results for original implementation.
For training:
python train.py --num_gpus=4 \
--model_name='Your model name.' \
--net_name='Your net name' \
--data_list_path='Your caffe-style list path.' \
--batch_size=512 \
...
...
For feature extraction:
python evaluate.py \
--model_name='Your model name. \
--net_name='Your net name' \
--fea_name='Your feature name' \
--data_list_path='Your caffe-style list path.' \
--batch_size=200 \
...
...
Comming soon...