HaohuaLv commited on
Commit
5f41a31
·
1 Parent(s): 90453bb

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -3
README.md CHANGED
@@ -1,3 +1,35 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Retinaface Face Detection
2
+
3
+ A retinaface model for Face Detection trained on widerface dataset.
4
+
5
+ Notice: This is face detection model's training, evaluation and inference scripts in HuggingFace🤗 style from scratch for practice.
6
+
7
+ ## Train
8
+ Run
9
+ ```bash
10
+ python train.py --model_config_file <MODEL_CONFIG_FILE>
11
+ ```
12
+ <MODEL_CONFIG_FILE> can be found in folder `config`.
13
+ Model checkpoints will be saved in folder `checkpoints` by default.
14
+
15
+ backbone-ResNet50 checkpoint can be download in my [google drive](https://drive.google.com/drive/folders/1teN75lXOvYPLdpzLoXPEPrsXfZJU18Id?usp=sharing).
16
+
17
+ ## Inference
18
+ ### Observe logits map and predicted bboxes
19
+ Run
20
+ ```bash
21
+ python inference.py --checkpoint_path <CHECKPOINT_PATH>
22
+ ```
23
+ <CHECKPOINT_PATH> is a model folder containing `config.json` and `pytorch_model.bin`.
24
+
25
+ ![inference image](pic/inference.svg)
26
+
27
+ ### Detect
28
+ Run
29
+ ```bash
30
+ python detect.py --checkpoint_path <CHECKPOINT_PATH> --image_path <IMAGE_PATH> --save_path <SAVE_PATH>
31
+ ```
32
+ ![inference image](pic/detect_result.png)
33
+
34
+ ## References
35
+ - [Retinface-pytorch](https://github.com/biubug6/Pytorch_Retinaface)