Skip to content

Commit 581b090

Browse files
committed
Add tensor-groups for Ultra-Light-Fast-Generic-Face-Detector
1 parent 232adb9 commit 581b090

5 files changed

+58
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Classification
2+
- tensor-group: yes
3+
- layer-type: output
4+
- use-case: face-detection
5+
6+
# Description
7+
8+
A specialized model that detects faces
9+
10+
Ultra-Light-Fast-Generic-Face-Detector Output Tensors:
11+
12+
| Name |shape |
13+
|--- |--- |
14+
| [boxes] |1 x COUNT x 4 |
15+
| [scores] |1 x COUNT x 2 |
16+
17+
Where COUNT is a value selected at training time.
18+
19+
# Tensor Decoding Logic
20+
21+
```
22+
Foreach i in count:
23+
X = boxes_processed(i, 0)
24+
Y = boxes_processed(i, 1)
25+
W = boxes_processed(i, 2)
26+
H = boxes_processed(i, 3)
27+
S = scores[i][1]
28+
If S > threshold:
29+
detection_candidates[j++] = [X, Y, W, H, S]
30+
detections = non_max_suppression(detection_candidates)
31+
32+
```
33+
34+
Where X, Y, W and H are values between 0 and 1. The boxes have been processed
35+
from the anchors.
36+
37+
# External References
38+
* https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB
39+
40+
# Models
41+
* [Model source](https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB/tree/master)
42+
* [ONNX pre-trained model](https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB/tree/master/models/)
43+
44+
# Tensor Decoders
45+
|Framework | Links |
46+
|--- |--- |
47+
|GStreamer | [perm](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-bad/gst/tensordecoders/gstfacedetectortensordecoder.c) |
48+
49+
50+
[boxes]: /tensors/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out-boxes-without-postproc.md
51+
[scores]: /tensors/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out-scores.md
52+

tensor-id-register.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
|--- |--- |
2121
|ssd-mobilenet-v1-variant-1-out | [details](/tensor-groups/ssd-mobilenet-v1-variant-1-out.md) |
2222
|ultra-lightweight-face-detection-rfb-320-v1-variant-1-out | [details](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out.md) |
23+
|ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out | [details](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out.md) |
2324
|yolo-v8-segmentation-out | [details](/tensor-groups/yolo-v8-segmentation-out.md) |

tensors/ssd-mobilenet-v1-variant-1-out-boxes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- use-case: object-detection
66
- part-of-tensor-groups:
77
- [ssd-mobilenet-v1-variant-1-out](/tensor-groups/ssd-mobilenet-v1-variant-1-out.md)
8+
- [ultra-lightweight-face-detection-rfb-320-v1-variant-1-out](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out.md)
9+
810

911
# Description
1012
Location of objects detected

tensors/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out-boxes-without-postproc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- tensor-group: no
44
- layer-type: output
55
- use-case: face-detection
6+
- part-of-tensor-groups:
7+
- [ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out.md)
68

79
# Description
810
Location of faces detected

tensors/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out-scores.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- use-case: face-detection
66
- part-of-tensor-groups:
77
- [ultra-lightweight-face-detection-rfb-320-v1-variant-1-out](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-variant-1-out.md)
8+
- [ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out](/tensor-groups/ultra-lightweight-face-detection-rfb-320-v1-without-postproc-out.md)
89

910
# Description
1011

0 commit comments

Comments
 (0)