Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets:
|
3 |
+
- detection-datasets/fashionpedia_4_categories
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
base_model:
|
7 |
+
- Ultralytics/YOLOv8
|
8 |
+
pipeline_tag: object-detection
|
9 |
+
---
|
10 |
+
|
11 |
+
|
12 |
+
This model is a finetuned version of YOLO-v8n on clothing detection.
|
13 |
+
|
14 |
+
### Object categories
|
15 |
+
|
16 |
+
- Clothing
|
17 |
+
- Shoes
|
18 |
+
- Bags
|
19 |
+
- Accessories
|
20 |
+
|
21 |
+
You can get more information (and code 🎉) on how to train or use the model on my [github].
|
22 |
+
|
23 |
+
[github]: https://github.com/kesimeg/YOLO-Clothing-Detection
|
24 |
+
|
25 |
+
# How to use the model?
|
26 |
+
|
27 |
+
- Install [ultralyticsplus](https://github.com/fcakyon/ultralyticsplus):
|
28 |
+
|
29 |
+
```bash
|
30 |
+
pip install ultralyticsplus==0.0.23 ultralytics==8.0.21
|
31 |
+
```
|
32 |
+
|
33 |
+
|
34 |
+
- Load model and perform prediction:
|
35 |
+
|
36 |
+
```python
|
37 |
+
from ultralyticsplus import YOLO, render_result
|
38 |
+
|
39 |
+
# load model
|
40 |
+
model = YOLO('kesimeg/yolov8n-clothing-detection')
|
41 |
+
|
42 |
+
# set image
|
43 |
+
image = 'some_image.jpg'
|
44 |
+
|
45 |
+
# perform inference
|
46 |
+
results = model.predict(image)
|
47 |
+
|
48 |
+
# observe results
|
49 |
+
print(results[0].boxes)
|
50 |
+
render = render_result(model=model, image=image, result=results[0])
|
51 |
+
render.show()
|
52 |
+
```
|
53 |
+
|
54 |
+
<div align="center">
|
55 |
+
<img width="640" alt="kesimeg/yolov8n-clothing-detection" src="https://huggingface.co/kesimeg/yolov8n-clothing-detection/resolve/main/sample_output.png">
|
56 |
+
</div>
|