Feature Extraction
ONNX
face
Plana-Archive commited on
Commit
006e4e0
·
verified ·
1 Parent(s): 031d728

Migrasi batch otomatis

Browse files
.gitattributes CHANGED
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ buffalo_l/CALFW_plot.png filter=lfs diff=lfs merge=lfs -text
37
+ buffalo_l/CFPW_plot.png filter=lfs diff=lfs merge=lfs -text
38
+ buffalo_l/CPLFW_plot.png filter=lfs diff=lfs merge=lfs -text
39
+ buffalo_l/LFW_plot.png filter=lfs diff=lfs merge=lfs -text
40
+ buffalo_l/plot.png filter=lfs diff=lfs merge=lfs -text
41
+ buffalo_s/CALFW_plot.png filter=lfs diff=lfs merge=lfs -text
42
+ buffalo_s/CFPW_plot.png filter=lfs diff=lfs merge=lfs -text
43
+ buffalo_s/CPLFW_plot.png filter=lfs diff=lfs merge=lfs -text
44
+ buffalo_s/LFW_plot.png filter=lfs diff=lfs merge=lfs -text
45
+ buffalo_s/plot.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: model-distribution-disclaimer-license
4
+ license_link: https://huggingface.co/spaces/deepghs/RDLicence
5
+ pipeline_tag: feature-extraction
6
+ tags:
7
+ - onnx
8
+ - face
9
+ ---
10
+
11
+ ONNX models from [insightface project](https://github.com/deepinsight/insightface).
12
+
13
+ # How To Use
14
+
15
+ ```shell
16
+ pip install dghs-realutils>=0.1.0
17
+ ```
18
+
19
+ ```python
20
+ from realutils.face.insightface import isf_face_batch_similarity, isf_analysis_faces, isf_faces_visualize
21
+
22
+ image_path = "/your/image/file"
23
+ # get the analysis all the faces
24
+ faces = isf_analysis_faces(image_path)
25
+ print(faces)
26
+
27
+ # compare them
28
+ print(isf_face_batch_similarity([face.embedding for face in faces]))
29
+
30
+ # visualize it
31
+ isf_faces_visualize(image_path, faces).show()
32
+
33
+ ```
34
+
35
+ # Available Models
36
+
37
+ We evaluated all these models with some evaluation datasets on face recognition.
38
+
39
+ * CFPW (500 ids/7K images/7K pairs)[1]
40
+ * LFW (5749 ids/13233 images/6K pairs)[2]
41
+ * CALFW (5749 ids/13233 images/6K pairs)[3]
42
+ * CPLFW (5749 ids/13233 images/6K pairs)[4]
43
+
44
+ Below are the complete results and recommended thresholds.
45
+
46
+ * Det: Success rate of face detection and landmark localization.
47
+ * Rec-F1: Maximum F1 score achieved in face recognition.
48
+ * Rec-Thresh: Optimal threshold determined by the maximum F1 score.
49
+
50
+ | Model | Eval ALL (Det/Rec-F1/Rec-Thresh) | Eval CALFW (Det/Rec-F1/Rec-Thresh) | Eval CFPW (Det/Rec-F1/Rec-Thresh) | Eval CPLFW (Det/Rec-F1/Rec-Thresh) | Eval LFW (Det/Rec-F1/Rec-Thresh) |
51
+ |:----------|:-----------------------------------|:-------------------------------------|:------------------------------------|:-------------------------------------|:-----------------------------------|
52
+ | buffalo_l | 99.88% / 98.34% / 0.2203 | 100.00% / 95.75% / 0.2273 | 99.99% / 99.66% / 0.1866 | 99.48% / 96.41% / 0.2207 | 100.00% / 99.85% / 0.2469 |
53
+ | buffalo_s | 99.49% / 96.87% / 0.1994 | 99.99% / 94.45% / 0.2124 | 99.65% / 98.64% / 0.1845 | 98.04% / 92.61% / 0.2019 | 100.00% / 99.68% / 0.2314 |
54
+
55
+ [1] Sengupta Soumyadip, Chen Jun-Cheng, Castillo Carlos, Patel Vishal M, Chellappa Rama, Jacobs David W, Frontal to profile face verification in the wild, WACV, 2016.
56
+
57
+ [2] Gary B. Huang, Manu Ramesh, Tamara Berg, and Erik Learned-Miller. Labeled Faces in the Wild: A Database for Studying Face Recognition in Unconstrained Environments, 2007.
58
+
59
+ [3] Zheng Tianyue, Deng Weihong, Hu Jiani, Cross-age lfw: A database for studying cross-age face recognition in unconstrained environments, arXiv:1708.08197, 2017.
60
+
61
+ [4] Zheng, Tianyue, and Weihong Deng. Cross-Pose LFW: A Database for Studying Cross-Pose Face Recognition in Unconstrained Environments, 2018.
62
+
buffalo_l/1k3d68.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45cc
3
+ size 143607619
buffalo_l/2d106det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbf
3
+ size 5030888
buffalo_l/CALFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 7156,
3
+ "det_ratio": 1.0,
4
+ "images": 7156,
5
+ "max_f1": 0.9575276193158405,
6
+ "optimal_threshold": 0.22726376354694366,
7
+ "pr_auc": 0.9801468035006968,
8
+ "roc_auc": 0.9696858888888891
9
+ }
buffalo_l/CALFW_plot.png ADDED

Git LFS Details

  • SHA256: e1eedece579925e5c1097afa93f86531f575d785c31f31463f119bf83e42939e
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
buffalo_l/CALFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_l/CFPW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 6904,
3
+ "det_ratio": 0.9998551774076756,
4
+ "images": 6905,
5
+ "max_f1": 0.9965679915679992,
6
+ "optimal_threshold": 0.18659818172454834,
7
+ "pr_auc": 0.9994035231656557,
8
+ "roc_auc": 0.9991370988207875
9
+ }
buffalo_l/CFPW_plot.png ADDED

Git LFS Details

  • SHA256: 454f8210f83fb93b804ea33be27cf9c8bb2b35a32eceebc01bb7f2e90b9eaf24
  • Pointer size: 131 Bytes
  • Size of remote file: 204 kB
buffalo_l/CFPW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_l/CPLFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 5953,
3
+ "det_ratio": 0.9948195187165776,
4
+ "images": 5984,
5
+ "max_f1": 0.9640831708057099,
6
+ "optimal_threshold": 0.2206880897283554,
7
+ "pr_auc": 0.9883191784600015,
8
+ "roc_auc": 0.9824685806263868
9
+ }
buffalo_l/CPLFW_plot.png ADDED

Git LFS Details

  • SHA256: a0b3af968ee073ed0e194ce0d1b1ae1f332cb96b37a670fc3212536331267d3b
  • Pointer size: 131 Bytes
  • Size of remote file: 200 kB
buffalo_l/CPLFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_l/LFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 7701,
3
+ "det_ratio": 1.0,
4
+ "images": 7701,
5
+ "max_f1": 0.9984977416199413,
6
+ "optimal_threshold": 0.24688777327537537,
7
+ "pr_auc": 0.9995424115832418,
8
+ "roc_auc": 0.9993373333333333
9
+ }
buffalo_l/LFW_plot.png ADDED

Git LFS Details

  • SHA256: acb03977f5d2f3d77057cc334afd01b9adfdd6e026b4dfac82c9606dee82ea55
  • Pointer size: 131 Bytes
  • Size of remote file: 181 kB
buffalo_l/LFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_l/det_10g.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5838f7fe053675b1c7a08b633df49e7af5495cee0493c7dcf6697200b85b5b91
3
+ size 16923827
buffalo_l/genderage.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fb
3
+ size 1322532
buffalo_l/metrics.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "datasets": {
3
+ "CALFW": {
4
+ "det_count": 7156,
5
+ "det_ratio": 1.0,
6
+ "images": 7156,
7
+ "max_f1": 0.9575276193158405,
8
+ "optimal_threshold": 0.22726376354694366,
9
+ "pr_auc": 0.9801468035006968,
10
+ "roc_auc": 0.9696858888888891
11
+ },
12
+ "CFPW": {
13
+ "det_count": 6904,
14
+ "det_ratio": 0.9998551774076756,
15
+ "images": 6905,
16
+ "max_f1": 0.9965679915679992,
17
+ "optimal_threshold": 0.18659818172454834,
18
+ "pr_auc": 0.9994035231656557,
19
+ "roc_auc": 0.9991370988207875
20
+ },
21
+ "CPLFW": {
22
+ "det_count": 5953,
23
+ "det_ratio": 0.9948195187165776,
24
+ "images": 5984,
25
+ "max_f1": 0.9640831708057099,
26
+ "optimal_threshold": 0.2206880897283554,
27
+ "pr_auc": 0.9883191784600015,
28
+ "roc_auc": 0.9824685806263868
29
+ },
30
+ "LFW": {
31
+ "det_count": 7701,
32
+ "det_ratio": 1.0,
33
+ "images": 7701,
34
+ "max_f1": 0.9984977416199413,
35
+ "optimal_threshold": 0.24688777327537537,
36
+ "pr_auc": 0.9995424115832418,
37
+ "roc_auc": 0.9993373333333333
38
+ }
39
+ },
40
+ "det_count": 27714,
41
+ "det_ratio": 0.9988466806026094,
42
+ "images": 27746,
43
+ "max_f1": 0.9833655410860797,
44
+ "optimal_threshold": 0.2203393578529358,
45
+ "pr_auc": 0.9947998211385201,
46
+ "roc_auc": 0.9922364734353162
47
+ }
buffalo_l/plot.png ADDED

Git LFS Details

  • SHA256: ec51d58bae38bf2f0105aa2216142a6bcb008081ff73b532ef6de01082f8d55c
  • Pointer size: 131 Bytes
  • Size of remote file: 214 kB
buffalo_l/ref.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "det": "det_10g.onnx",
3
+ "extract": "w600k_r50.onnx"
4
+ }
buffalo_l/sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_l/w600k_r50.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c06341c33c2ca1f86781dab0e829f88ad5b64be9fba56e56bc9ebdefc619e43
3
+ size 174383860
buffalo_s/1k3d68.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45cc
3
+ size 143607619
buffalo_s/2d106det.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbf
3
+ size 5030888
buffalo_s/CALFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 7155,
3
+ "det_ratio": 0.9998602571268865,
4
+ "images": 7156,
5
+ "max_f1": 0.9444636031466876,
6
+ "optimal_threshold": 0.2123945951461792,
7
+ "pr_auc": 0.9787594192713281,
8
+ "roc_auc": 0.9682488607313549
9
+ }
buffalo_s/CALFW_plot.png ADDED

Git LFS Details

  • SHA256: 2470d384a9da56cf59b3cf142ce059765ffc7ee8cc70ef18aed3ec20509c7633
  • Pointer size: 131 Bytes
  • Size of remote file: 202 kB
buffalo_s/CALFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_s/CFPW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 6881,
3
+ "det_ratio": 0.9965242577842144,
4
+ "images": 6905,
5
+ "max_f1": 0.9864024252041946,
6
+ "optimal_threshold": 0.1845134049654007,
7
+ "pr_auc": 0.9982802675853417,
8
+ "roc_auc": 0.9977283809202676
9
+ }
buffalo_s/CFPW_plot.png ADDED

Git LFS Details

  • SHA256: d625d267bff5111d2fb8d4e5e8efb3d826005cb4275fbfc2266da24a45c378bd
  • Pointer size: 131 Bytes
  • Size of remote file: 212 kB
buffalo_s/CFPW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_s/CPLFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 5867,
3
+ "det_ratio": 0.9804478609625669,
4
+ "images": 5984,
5
+ "max_f1": 0.9260783912820901,
6
+ "optimal_threshold": 0.20188501477241516,
7
+ "pr_auc": 0.9768656109186045,
8
+ "roc_auc": 0.9684043224496519
9
+ }
buffalo_s/CPLFW_plot.png ADDED

Git LFS Details

  • SHA256: ae7f9ab0421ac40aff6242448240d47fd6e46938e5a88ebd854f00887c8baea6
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
buffalo_s/CPLFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_s/LFW_metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "det_count": 7701,
3
+ "det_ratio": 1.0,
4
+ "images": 7701,
5
+ "max_f1": 0.9968264523242262,
6
+ "optimal_threshold": 0.23136700689792633,
7
+ "pr_auc": 0.9995664687476978,
8
+ "roc_auc": 0.9994408888888889
9
+ }
buffalo_s/LFW_plot.png ADDED

Git LFS Details

  • SHA256: f86d30c5968986766f87ba429dbef38a94f0c1ce47c405616808c4b15a2ccb7a
  • Pointer size: 131 Bytes
  • Size of remote file: 183 kB
buffalo_s/LFW_sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_s/det_500m.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e4447f50245bbd7966bd6c0fa52938c61474a04ec7def48753668a9d8b4ea3a
3
+ size 2524817
buffalo_s/genderage.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fb
3
+ size 1322532
buffalo_s/metrics.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "datasets": {
3
+ "CALFW": {
4
+ "det_count": 7155,
5
+ "det_ratio": 0.9998602571268865,
6
+ "images": 7156,
7
+ "max_f1": 0.9444636031466876,
8
+ "optimal_threshold": 0.2123945951461792,
9
+ "pr_auc": 0.9787594192713281,
10
+ "roc_auc": 0.9682488607313549
11
+ },
12
+ "CFPW": {
13
+ "det_count": 6881,
14
+ "det_ratio": 0.9965242577842144,
15
+ "images": 6905,
16
+ "max_f1": 0.9864024252041946,
17
+ "optimal_threshold": 0.1845134049654007,
18
+ "pr_auc": 0.9982802675853417,
19
+ "roc_auc": 0.9977283809202676
20
+ },
21
+ "CPLFW": {
22
+ "det_count": 5867,
23
+ "det_ratio": 0.9804478609625669,
24
+ "images": 5984,
25
+ "max_f1": 0.9260783912820901,
26
+ "optimal_threshold": 0.20188501477241516,
27
+ "pr_auc": 0.9768656109186045,
28
+ "roc_auc": 0.9684043224496519
29
+ },
30
+ "LFW": {
31
+ "det_count": 7701,
32
+ "det_ratio": 1.0,
33
+ "images": 7701,
34
+ "max_f1": 0.9968264523242262,
35
+ "optimal_threshold": 0.23136700689792633,
36
+ "pr_auc": 0.9995664687476978,
37
+ "roc_auc": 0.9994408888888889
38
+ }
39
+ },
40
+ "det_count": 27604,
41
+ "det_ratio": 0.9948821451740791,
42
+ "images": 27746,
43
+ "max_f1": 0.9687419883395334,
44
+ "optimal_threshold": 0.1993800550699234,
45
+ "pr_auc": 0.9926964024071201,
46
+ "roc_auc": 0.9898184951053839
47
+ }
buffalo_s/plot.png ADDED

Git LFS Details

  • SHA256: c76da92c34b938674039ac8703db306cfc010b23c2692d0983a771c8c14c84a5
  • Pointer size: 131 Bytes
  • Size of remote file: 222 kB
buffalo_s/ref.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "det": "det_500m.onnx",
3
+ "extract": "w600k_mbf.onnx"
4
+ }
buffalo_s/sims.csv ADDED
The diff for this file is too large to render. See raw diff
 
buffalo_s/w600k_mbf.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cc6e4a75f0e2bf0b1aed94578f144d15175f357bdc05e815e5c4a02b319eb4f
3
+ size 13616099