This code is a trial to revamp the code Tiny_Faces_in_Tensorflow which is a TensorFlow port(inference only) of Tiny Face Detector from authors' MatConvNet codes.
- dlib face aligner is added
You can download the converted model from here Tinyface Model
Or you can flow this to convert the model:
matconvnet_hr101_to_pickle
reads weights of the MatConvNet pretrained model and
write back to a pickle file which is used in a TensorFlow model as initial weights.
-
Download a ResNet101-based pretrained model(hr_res101.mat) from the authors' repo.
-
Convert the model to a pickle file by:
python matconvnet_hr101_to_pickle.py
--matlab_model_path /path/to/pretrained_model
--weight_file_path /path/to/pickle_file
Requirements:
- opencv-python
- dlib
- Tensorflow