chaodu001 commited on
Commit
ce236d7
1 Parent(s): d690599

Upload 14 files

Browse files

from Bingsu/adetailer

yolo/.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
yolo/README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: ultralytics
4
+ datasets:
5
+ - wider_face
6
+ - skytnt/anime-segmentation
7
+ tags:
8
+ - pytorch
9
+ ---
10
+
11
+ # YOLOv8 Detection Model
12
+ from
13
+ ```
14
+ Bingsu/adetailer
15
+ ```
16
+ ## Datasets
17
+
18
+ ### Face
19
+
20
+ - [Anime Face CreateML](https://universe.roboflow.com/my-workspace-mph8o/anime-face-createml)
21
+ - [xml2txt](https://universe.roboflow.com/0oooooo0/xml2txt-njqx1)
22
+ - [AN](https://universe.roboflow.com/sed-b8vkf/an-lfg5i)
23
+ - [wider face](http://shuoyang1213.me/WIDERFACE/index.html)
24
+
25
+ ### Hand
26
+
27
+ - [AnHDet](https://universe.roboflow.com/1-yshhi/anhdet)
28
+ - [hand-detection-fuao9](https://universe.roboflow.com/catwithawand/hand-detection-fuao9)
29
+
30
+ ### Person
31
+
32
+ - [coco2017](https://cocodataset.org/#home) (only person)
33
+ - [AniSeg](https://github.com/jerryli27/AniSeg)
34
+ - [skytnt/anime-segmentation](https://huggingface.co/datasets/skytnt/anime-segmentation)
35
+
36
+ ### deepfashion2
37
+
38
+ - [deepfashion2](https://github.com/switchablenorms/DeepFashion2)
39
+
40
+ | id | label |
41
+ | --- | --------------------- |
42
+ | 0 | short_sleeved_shirt |
43
+ | 1 | long_sleeved_shirt |
44
+ | 2 | short_sleeved_outwear |
45
+ | 3 | long_sleeved_outwear |
46
+ | 4 | vest |
47
+ | 5 | sling |
48
+ | 6 | shorts |
49
+ | 7 | trousers |
50
+ | 8 | skirt |
51
+ | 9 | short_sleeved_dress |
52
+ | 10 | long_sleeved_dress |
53
+ | 11 | vest_dress |
54
+ | 12 | sling_dress |
55
+
56
+ ## Info
57
+
58
+ | Model | Target | mAP 50 | mAP 50-95 |
59
+ | --------------------------- | --------------------- | ----------------------------- | ----------------------------- |
60
+ | face_yolov8n.pt | 2D / realistic face | 0.660 | 0.366 |
61
+ | face_yolov8n_v2.pt | 2D / realistic face | 0.669 | 0.372 |
62
+ | face_yolov8s.pt | 2D / realistic face | 0.713 | 0.404 |
63
+ | face_yolov8m.pt | 2D / realistic face | 0.737 | 0.424 |
64
+ | face_yolov9c.pt | 2D / realistic face | 0.748 | 0.433 |
65
+ | hand_yolov8n.pt | 2D / realistic hand | 0.767 | 0.505 |
66
+ | hand_yolov8s.pt | 2D / realistic hand | 0.794 | 0.527 |
67
+ | hand_yolov9c.pt | 2D / realistic hand | 0.810 | 0.550 |
68
+ | person_yolov8n-seg.pt | 2D / realistic person | 0.782 (bbox)<br/>0.761 (mask) | 0.555 (bbox)<br/>0.460 (mask) |
69
+ | person_yolov8s-seg.pt | 2D / realistic person | 0.824 (bbox)<br/>0.809 (mask) | 0.605 (bbox)<br/>0.508 (mask) |
70
+ | person_yolov8m-seg.pt | 2D / realistic person | 0.849 (bbox)<br/>0.831 (mask) | 0.636 (bbox)<br/>0.533 (mask) |
71
+ | deepfashion2_yolov8s-seg.pt | realistic clothes | 0.849 (bbox)<br/>0.840 (mask) | 0.763 (bbox)<br/>0.675 (mask) |
72
+
73
+ ## Usage
74
+
75
+ ```python
76
+ from huggingface_hub import hf_hub_download
77
+ from ultralytics import YOLO
78
+
79
+ path = hf_hub_download("Bingsu/adetailer", "face_yolov8n.pt")
80
+ model = YOLO(path)
81
+ ```
82
+
83
+ ```python
84
+ import cv2
85
+ from PIL import Image
86
+
87
+ img = "https://farm5.staticflickr.com/4139/4887614566_6b57ec4422_z.jpg"
88
+ output = model(img)
89
+ pred = output[0].plot()
90
+ pred = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
91
+ pred = Image.fromarray(pred)
92
+ pred
93
+ ```
94
+
95
+ ![image](https://i.imgur.com/9ny1wmD.png)
96
+
97
+
98
+ ## Unsafe files
99
+
100
+ ![image](https://i.imgur.com/9Btuy8j.png)
101
+
102
+ Since `getattr` is classified as a dangerous pickle function, any segmentation model that uses it is classified as unsafe.
103
+
104
+ All models were created and saved using the official [ultralytics](https://github.com/ultralytics/ultralytics) library, so it's okay to use files downloaded from a trusted source.
105
+
106
+ See also: https://huggingface.co/docs/hub/security-pickle
yolo/deepfashion2_yolov8s-seg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a707d8a3beb4ea0ce5e01e1baaa86c3a3c50ee1eff453ec4ee81a75d00994e0
3
+ size 23852385
yolo/face_yolov8m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f02b8a23e6f12bd2c1b1f6714f66f984c728fa41ed749d033e7d6dea511ef70c
3
+ size 52026019
yolo/face_yolov8n.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00f65de68e220f21e15ad0e24efdfbb37dd89e6acbfd4e63452989eb0605bed8
3
+ size 6230075
yolo/face_yolov8n_v2.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1494cc31c9e8baf49f19277f456f4056f5fc770887aa394887472bf1a49386c
3
+ size 6239036
yolo/face_yolov8s.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6789a544b6747b6e6c099b01adfe118ff5ab93ecebda4d15f513ee91fc05c8ae
3
+ size 22507771
yolo/face_yolov9c.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89576f24718413e4ed57d63e24aacedc7401ba0fe0514a84bb05a91dc6e4bc51
3
+ size 51590267
yolo/hand_yolov8n.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3f23b865741cc8373a76dfac31a71ffd71356a480ca43266f294815b608e174
3
+ size 6237883
yolo/hand_yolov8s.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c4faf8d17286ace2c3d3346c6d0d4a0c8d62404955263a7ae95c1dd7eb877af
3
+ size 22507707
yolo/hand_yolov9c.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f66006c1af7bccbb6a9d2d1b680ba7e9eb5f79ea35c7b56e0ccde18e3371bf6
3
+ size 51575995
yolo/person_yolov8m-seg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d881ec50b831f546e37977081b18f4e3bf65664aec163f97a311b0955499795
3
+ size 54827683
yolo/person_yolov8n-seg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:029e36039b533e26a4b380af78957eb4fb85bc417b1df0a189af0483b7f40fa7
3
+ size 6777003
yolo/person_yolov8s-seg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5684835e79fd8b805459e0f7a0f9daa437e421cb4a214fff45ec4ac61767ef9
3
+ size 23850795