CatSat commited on
Commit
25a03cf
verified
1 Parent(s): 59402a5

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +72 -0
  2. best.pt +3 -0
README.md CHANGED
@@ -1,3 +1,75 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ library_name: ultralytics
4
+ pipeline_tag: image-segmentation
5
+ tags:
6
+ - yolo
7
+ - yolov11
8
+ - ultralytics
9
+ - instance-segmentation
10
+ - object-detection
11
+ - litter
12
+ - waste
13
+ - recycling
14
+ - taco
15
+ metrics:
16
+ - mAP
17
  ---
18
+
19
+ # YOLOv11 Litter Material Segmentation (TACO)
20
+
21
+ A YOLOv11-seg model that segments litter in images and labels each piece by material for a recycling/sorting use case:
22
+
23
+ Plastic 路 Metal 路 Glass 路 Paper 路 Other
24
+
25
+ Fine-tuned on the TACO dataset, whose 60 fine categories were grouped by material to reduce class imbalance.
26
+
27
+ ## Results (validation)
28
+
29
+ | Metric | mAP50 | mAP50-95 |
30
+ | ------ | ----- | -------- |
31
+ | Mask | 0.272 | 0.188 |
32
+ | Box | 0.291 | 0.220 |
33
+
34
+ Per-material mask mAP50-95: Plastic 0.35, Metal 0.34, Paper 0.19, Other 0.04, Glass 0.02.
35
+
36
+ TACO is a small (~1,500 images), heavily imbalanced, real-world dataset, so absolute mAP is modest. Plastic and Metal (the best-represented materials) are the strongest; Glass is weak simply because very few glass instances exist in the data.
37
+
38
+ ## Limitations & how it could be improved
39
+
40
+ The scores are modest because of the dataset, not the pipeline. On real photos the model still makes confident mistakes (for example reading crumpled plastic film as Glass) and misses small or occluded items. Ways to push accuracy up:
41
+
42
+ - More and better-balanced data: merge other litter datasets, oversample and copy-paste the rare classes (Glass, Other), train with a class-weighted loss.
43
+ - Stronger augmentation (mosaic, copy-paste, lighting/HSV jitter).
44
+ - Bigger backbone (yolo11s to m/l) and longer training, given enough GPU.
45
+ - Higher resolution or tiling so small litter survives downscaling.
46
+ - Per-class confidence tuning to cut confident-but-wrong calls.
47
+
48
+ ## Usage
49
+
50
+ ```python
51
+ from huggingface_hub import hf_hub_download
52
+ from ultralytics import YOLO
53
+
54
+ weights = hf_hub_download("CatSat/yolov11-litter-materials", "best.pt")
55
+ model = YOLO(weights)
56
+
57
+ results = model.predict("photo.jpg", conf=0.25)
58
+ results[0].show()
59
+ ```
60
+
61
+ ## Training
62
+
63
+ - Base model: yolo11s-seg
64
+ - Image size: 960 (small litter benefits from higher resolution)
65
+ - Epochs: 80 (early stopping), batch 16
66
+ - Labels: COCO segmentation polygons converted to YOLO-seg format
67
+
68
+ ## Links
69
+
70
+ - Live demo: https://huggingface.co/spaces/CatSat/litter-detection-yolov11
71
+ - Code + training notebook: https://github.com/CatSatOK/litter-detection-yolov11
72
+
73
+ ## License
74
+
75
+ MIT
best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e48518a798b05ef6a8a123526aedc6ee9afe508796dd0b1bc37c0c2eb333a164
3
+ size 20525732