File size: 772 Bytes
7b779f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

---
language: en
license: mit
tags:
  - yolov8
  - object-detection
  - waste-classification
library_name: onnx
pipeline_tag: object-detection
---

# trashscan8n

YOLOv8 mobile_model_package_yolov8n_v2 ONNX model for waste classification.

## Classes

| Index | Class |
|-------|-------|
| 0     | paper |
| 1     | plastic |
| 2     | metal |
| 3     | organic |
| 4     | other |

## Usage

```python
import onnxruntime
import numpy as np
from PIL import Image

session = onnxruntime.InferenceSession("best.onnx")
input_name = session.get_inputs()[0].name
# Input: [1, 3, 640, 640] normalized float32
# Output: [1, 9, 8400] = [cx, cy, w, h, p0, p1, p2, p3, p4]
```

## Model Specs

- Input size: 640x640
- Format: ONNX
- Confidence threshold: 0.25
- IoU threshold: 0.5