Instructions to use Anzhc/Race-Classification-FairFace-YOLOv8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Anzhc/Race-Classification-FairFace-YOLOv8 with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("Anzhc/Race-Classification-FairFace-YOLOv8") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: agpl-3.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: agpl-3.0
|
| 3 |
+
tags:
|
| 4 |
+
- pytorch
|
| 5 |
+
- YOLOv8
|
| 6 |
+
- Ultralytics
|
| 7 |
+
base_model:
|
| 8 |
+
- Ultralytics/YOLOv8
|
| 9 |
+
library_name: ultralytics
|
| 10 |
+
pipeline_tag: object-detection
|
| 11 |
+
---
|
| 12 |
+
# Race Classification YOLOv8
|
| 13 |
+
This model is based on [FairFace](https://github.com/joojs/fairface) 0.25 padding variant dataset composed by Microsoft researchers, aiming to reduce bias by better balancing classes in dataset.
|
| 14 |
+
> **Karkkainen, Kimmo, and Joo, Jungseock.**
|
| 15 |
+
> *FairFace: Face Attribute Dataset for Balanced Race, Gender, and Age for Bias Measurement and Mitigation.*
|
| 16 |
+
> Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2021, pp. 1548–1558.
|
| 17 |
+
> [FairFace Dataset on GitHub](https://github.com/joojs/fairface)
|
| 18 |
+
|
| 19 |
+
You also can find their pretrained model [here](https://github.com/dchen236/FairFace).
|
| 20 |
+
|
| 21 |
+
This YOLOv8 training is meant only for race classification. I wanted a really really fast model for tagging, and this is likely what it's useful for!
|
| 22 |
+
I will provide a pipeline for running it on your datasets in future.
|
| 23 |
+
|
| 24 |
+
| Model | Target | top1_acc |Classes |Dataset size |Training Resolution|
|
| 25 |
+
| --------------------------- | ---------- | ------------- | ------------- |---------------|-------------------|
|
| 26 |
+
|Race-CLS-FairFace_yolov8n| Face: Real | 0.717 | 7(Black, East Asian, Indian, Latino_Hispanic, Middle Eastern, Southeast Asian, White) |~86740(train), ~10950(val)|224|
|
| 27 |
+
|Race-CLS-FairFace_yolov8s| Face: Real | IN PROGRESS | 7(Black, East Asian, Indian, Latino_Hispanic, Middle Eastern, Southeast Asian, White) |~86740(train), ~10950(val)|224|
|
| 28 |
+
|Race-CLS-FairFace_yolov8m| Face: Real | IN PROGRESS | 7(Black, East Asian, Indian, Latino_Hispanic, Middle Eastern, Southeast Asian, White) |~86740(train), ~10950(val)|224|
|