File size: 5,468 Bytes
ae684cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
acceb6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
794223b
 
184ddd2
3aa25f6
ab9319d
794223b
 
 
 
 
e9fca6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
datasets:
- deepghs/real_person_detection
- deepghs/anime_person_detection
pipeline_tag: object-detection
library_name: dghs-imgutils
tags:
- art
- anime
- photo
- person
---

These models are trained on [deepghs/anime_person_detection](https://huggingface.co./deepghs/anime_person_detection) and open-sourced real photos datasets.

So both anime and photos are supported.

Use this with `dghs-realutils`

```shell
pip install dghs-realutils
```

```python
from realutils.detect import detect_persons

print(detect_persons('yolo/solo.jpg'))
#[((0, 30, 398, 599), 'person', 0.926707923412323)]
print(detect_persons('yolo/2girls.jpg'))
# [((0, 74, 760, 1598), 'person', 0.7578195333480835), ((437, 33, 1200, 1600), 'person', 0.6875205039978027)]
print(detect_persons('yolo/3+cosplay.jpg'))
# [((106, 69, 347, 591), 'person', 0.8794167041778564), ((326, 14, 592, 534), 'person', 0.8018194437026978), ((167, 195, 676, 675), 'person', 0.5351650714874268)]
print(detect_persons('yolo/multiple.jpg'))
# [((1305, 441, 1891, 1534), 'person', 0.8789498805999756), ((206, 191, 932, 1533), 'person', 0.8423126935958862), ((1054, 170, 1417, 1055), 'person', 0.8138357996940613), ((697, 659, 1473, 1534), 'person', 0.7926754951477051), ((685, 247, 1128, 1526), 'person', 0.5261526703834534), ((690, 251, 1125, 1126), 'person', 0.4193646311759949)]
```

For more information, see [documentation of realutils](https://dghs-realutils.deepghs.org/main/api_doc/detect/person.html).

|          Model          |  Type  |  FLOPS  |  Params  |  F1 Score  |  Threshold  |  precision(B)  |  recall(B)  |  mAP50(B)  |  mAP50-95(B)  |                                                   F1 Plot                                                   |                                                              Confusion                                                              |  Labels  |
|:-----------------------:|:------:|:-------:|:--------:|:----------:|:-----------:|:--------------:|:-----------:|:----------:|:-------------:|:-----------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------:|:--------:|
| person_detect_v0_l_yv11 |  yolo  |  87.3G  |  25.3M   |    0.79    |    0.359    |    0.84037     |   0.74055   |  0.82796   |    0.57272    | [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_l_yv11/F1_curve.png) | [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_l_yv11/confusion_matrix_normalized.png) | `person` |
| person_detect_v0_m_yv11 |  yolo  |  68.2G  |  20.1M   |    0.78    |    0.351    |    0.83393     |   0.73614   |  0.82195   |    0.56267    | [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_m_yv11/F1_curve.png) | [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_m_yv11/confusion_matrix_normalized.png) | `person` |
| person_detect_v0_s_yv11 |  yolo  |  21.5G  |  9.43M   |    0.75    |    0.344    |    0.82356     |   0.6967    |  0.79224   |    0.52304    | [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_s_yv11/F1_curve.png) | [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_s_yv11/confusion_matrix_normalized.png) | `person` |
| person_detect_v0_n_yv11 |  yolo  |  6.44G  |  2.59M   |    0.71    |    0.325    |    0.80096     |   0.64148   |  0.74612   |    0.46875    | [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_n_yv11/F1_curve.png) | [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_n_yv11/confusion_matrix_normalized.png) | `person` |
|   person_detect_v0_l    |  yolo  |  165G   |  43.6M   |    0.79    |    0.359    |    0.83674     |   0.74182   |  0.82536   |    0.57022    |   [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_l/F1_curve.png)    |   [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_l/confusion_matrix_normalized.png)    | `person` |
|   person_detect_v0_m    |  yolo  |  79.1G  |  25.9M   |    0.78    |    0.363    |    0.83439     |   0.72529   |  0.81314   |    0.55388    |   [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_m/F1_curve.png)    |   [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_m/confusion_matrix_normalized.png)    | `person` |
|   person_detect_v0_s    |  yolo  |  28.6G  |  11.1M   |    0.76    |    0.346    |    0.82522     |   0.69696   |  0.79105   |    0.52201    |   [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_s/F1_curve.png)    |   [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_s/confusion_matrix_normalized.png)    | `person` |
|   person_detect_v0_n    |  yolo  |  8.19G  |  3.01M   |    0.72    |    0.32     |    0.80883     |   0.64552   |  0.74996   |    0.47272    |   [plot](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_n/F1_curve.png)    |   [confusion](https://huggingface.co./deepghs/real_person_detection/blob/main/person_detect_v0_n/confusion_matrix_normalized.png)    | `person` |