Anderodri commited on
Commit
da43886
·
1 Parent(s): bd55bc8

[FEATURE] Model (best.pt and last.pt) and model card upload for yolov8n celebrity detection model

Browse files
README.md CHANGED
@@ -1,3 +1,101 @@
 
 
 
 
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Celebrity Detection YOLOv8n
2
+
3
+ 📌 **[English](#celebrity-detection-yolov8n) | [Español](#espanol)**
4
+
5
  ---
6
+
7
+ ## 📄 Celebrity Detection YOLOv8n (English)
8
+ ⬇ Scroll down for [Español](#espanol)
9
+
10
+ This repository contains a **YOLOv8n** model trained to detect the main characters from the TV show **Friends** in images and videos. The model was trained on a custom dataset labeled using Amazon Rekognition.
11
+
12
+ ## 📌 Model Details
13
+
14
+ - **Model:** YOLOv8n (pretrained on COCO, fine-tuned on Friends dataset)
15
+ - **Classes:**
16
+ - Matt LeBlanc (Joey)
17
+ - David Schwimmer (Ross)
18
+ - Matthew Perry (Chandler)
19
+ - Courteney Cox (Monica)
20
+ - Jennifer Aniston (Rachel)
21
+ - **Dataset:** Custom dataset generated from **YouTube shorts** of Friends episodes
22
+ - **Training Images:** ~13,000 (80% training, 20% validation)
23
+ - **Hardware Used:** Trained on GPU
24
+ - **Frameworks & Libraries:** `ultralytics`
25
+
26
+ ## 🏆 Model Performance
27
+
28
+ | Metric | Value |
29
+ |------------------|-------|
30
+ | **mAP@50** | 0.98 |
31
+ | **mAP@50-95** | 0.91 |
32
+ | **Precision** | 0.96 |
33
+ | **Recall** | 0.98 |
34
+
35
+ ### Performance Curves:
36
+
37
+ **F1-Confidence Curve:**
38
+ ![F1 Curve](./images/F1_curve.png)
39
+
40
+ **Recall-Confidence Curve:**
41
+ ![Recall Curve](./images/R_curve.png)
42
+
43
+ **Precision-Confidence Curve:**
44
+ ![Precision Curve](./images/P_curve.png)
45
+
46
+ **Confusion Matrix:**
47
+ ![Confusion Matrix](./images/confusion_matrix_normalized.png)
48
+
49
+ ## 📸 Example Detections
50
+
51
+ Correctly detected images:
52
+ ![Detection Example](./images/image1.png)
53
+ ![Detection Example](./images/image2.png)
54
+
55
+ Incorrect/misclassified example (blonde woman mistaken for Jennifer Aniston):
56
+ ![Misclassification](./images/image3.png)
57
+
58
  ---
59
+
60
+ <a id="espanol"></a>
61
+ ## 📄 Modelo de Detección de Celebridades YOLOv8n (Español)
62
+ ⬆ Scroll up for [English](#celebrity-detection-yolov8n)
63
+
64
+ Este repositorio contiene un modelo **YOLOv8n** entrenado para detectar a los personajes principales de la serie **Friends** en imágenes y videos. El modelo fue entrenado en un conjunto de datos personalizado etiquetado con Amazon Rekognition.
65
+
66
+ ## 🏆 Rendimiento del Modelo
67
+
68
+ | Métrica | Valor |
69
+ |-----------------|-------|
70
+ | **mAP@50** | 0.98 |
71
+ | **mAP@50-95** | 0.91 |
72
+ | **Precisión** | 0.96 |
73
+ | **Recall** | 0.98 |
74
+
75
+ ### Curvas de Rendimiento:
76
+
77
+ **Curva F1-Confianza:**
78
+ ![Curva F1](./images/F1_curve.png)
79
+
80
+ **Curva Recall-Confianza:**
81
+ ![Curva Recall](./images/R_curve.png)
82
+
83
+ **Curva Precisión-Confianza:**
84
+ ![Curva Precisión](./images/P_curve.png)
85
+
86
+ **Matriz de Confusión:**
87
+ ![Matriz de Confusión](./images/confusion_matrix_normalized.png)
88
+
89
+ ## 📸 Ejemplos de Detección
90
+
91
+ Imágenes detectadas correctamente:
92
+ ![Ejemplo de Detección](./images/image1.png)
93
+ ![Ejemplo de Detección](./images/image2.png)
94
+
95
+ Ejemplo de detección errónea (mujer rubia identificada incorrectamente como Jennifer Aniston):
96
+ ![Error de Clasificación](./images/image3.png)
97
+
98
+ ---
99
+
100
+ ¡Déjanos saber tus comentarios o mejoras! 🚀
101
+
images/.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.png filter=lfs diff=lfs merge=lfs -text
images/F1_curve.png ADDED

Git LFS Details

  • SHA256: d22b48d9794fcdbbb99e437db5e424806ca1c6f7922f848017bd2901a94deadc
  • Pointer size: 131 Bytes
  • Size of remote file: 281 kB
images/P_curve.png ADDED

Git LFS Details

  • SHA256: 5beb56d6d2b36c35c2939f606488be1de4bf33446656977f3ed06abb1c241591
  • Pointer size: 131 Bytes
  • Size of remote file: 225 kB
images/R_curve.png ADDED

Git LFS Details

  • SHA256: a37da1c6b1ce7c00b2f283d9d7bc564ecb8c5ffc8a71fbc24572664d0ac98227
  • Pointer size: 131 Bytes
  • Size of remote file: 283 kB
images/confusion_matrix_normalized.png ADDED

Git LFS Details

  • SHA256: 60972718d504dfd8cc16dd99de11a50617685737e0947988975c553f59b4b0ab
  • Pointer size: 131 Bytes
  • Size of remote file: 229 kB
images/image1.png ADDED

Git LFS Details

  • SHA256: 66134396d56cf4ae6d58103794c10c6f5769e6baf09ce005379b8bc2e07e549d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
images/image2.png ADDED

Git LFS Details

  • SHA256: b0bbdacb5706cf89207fb2f2385916828181a27b271b696ecfdf9e2dc6f8b9de
  • Pointer size: 131 Bytes
  • Size of remote file: 185 kB
images/image3.png ADDED

Git LFS Details

  • SHA256: 451b5cfb05ed25abed0bc1204bc09238568aee17bce7af4eb8f9af876ef0c8fe
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
images/results.png ADDED

Git LFS Details

  • SHA256: f50a4a6f9653ad25b375f332796789a9347e608eb0da79639022f63d3cbc6318
  • Pointer size: 131 Bytes
  • Size of remote file: 368 kB
models/.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.pt filter=lfs diff=lfs merge=lfs -text
models/best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63a048a7db16da856bdc1c51488ab82677859bb8412312040342fc9e7c631af3
3
+ size 6232803
models/last.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:246234d6aed795fb068e135bb94b7dc1fd39c08f5af4475407a23c93679984ec
3
+ size 6232803