Skip to content

Commit 6fd645e

Browse files
fixed some typos
1 parent eef5418 commit 6fd645e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@ Browse to http://localhost:3000/.
9595

9696
## Face Detection Models
9797

98-
## SSD Mobilenet V1
98+
### SSD Mobilenet V1
9999

100100
For face detection, this project implements a SSD (Single Shot Multibox Detector) based on MobileNetV1. The neural net will compute the locations of each face in an image and will return the bounding boxes together with it's probability for each face. This face detector is aiming towards obtaining high accuracy in detecting face bounding boxes instead of low inference time. The size of the quantized model is about 5.4 MB (**ssd_mobilenetv1_model**).
101101

102102
The face detection model has been trained on the [WIDERFACE dataset](http://mmlab.ie.cuhk.edu.hk/projects/WIDERFace/) and the weights are provided by [yeephycho](https://github.com/yeephycho) in [this](https://github.com/yeephycho/tensorflow-face-detection) repo.
103103

104-
## Tiny Face Detector
104+
### Tiny Face Detector
105105

106106
The Tiny Face Detector is a very performant, realtime face detector, which is much faster, smaller and less resource consuming compared to the SSD Mobilenet V1 face detector, in return it performs slightly less well on detecting small faces. This model is extremely mobile and web friendly, thus it should be your GO-TO face detector on mobile devices and resource limited clients. The size of the quantized model is only 190 KB (**tiny_face_detector_model**).
107107

108108
The face detector has been trained on a custom dataset of ~14K images labeled with bounding boxes. Furthermore the model has been trained to predict bounding boxes, which entirely cover facial feature points, thus it in general produces better results in combination with subsequent face landmark detection than SSD Mobilenet V1.
109109

110-
This model is basically an even tinier version of Tiny Yolo V2, replacing the regular convolutions of Yolo with depthwise separable convolutions. Yolo is fully convoltuional, thus can easily adapt to different input image sizes to trade off accuracy for performance (inference time).
110+
This model is basically an even tinier version of Tiny Yolo V2, replacing the regular convolutions of Yolo with depthwise separable convolutions. Yolo is fully convolutional, thus can easily adapt to different input image sizes to trade off accuracy for performance (inference time).
111111

112-
## MTCNN
112+
### MTCNN
113113

114114
**Note, this model is mostly kept in this repo for experimental reasons. In general the other face detectors should perform better, but of course you are free to play around with MTCNN.**
115115

@@ -511,9 +511,9 @@ Instead of using the high level API, you can directly use the forward methods of
511511
const detections1 = await faceapi.ssdMobilenetv1(input, options)
512512
const detections2 = await faceapi.tinyFaceDetector(input, options)
513513
const detections3 = await faceapi.mtcnn(input, options)
514-
const landmarks1 = await faceapi.detectFaceLandmarks(input, options)
515-
const landmarks2 = await faceapi.detectFaceLandmarksTiny(input, options)
516-
const descriptor = await faceapi.computeDescriptor(input, options)
514+
const landmarks1 = await faceapi.detectFaceLandmarks(faceImage)
515+
const landmarks2 = await faceapi.detectFaceLandmarksTiny(faceImage)
516+
const descriptor = await faceapi.computeDescriptor(alignedFaceImage)
517517
```
518518

519519
All global neural network instances are exported via faceapi.nets:

0 commit comments

Comments
 (0)