File size: 1,640 Bytes
6629511
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
---
library_name: onnx
tags:
  - yolov8
  - object-detection
  - coco
  - computer-vision
  - ultralytics
  - onnx
  - inference4j
license: agpl-3.0
pipeline_tag: object-detection
---

# YOLOv8n — ONNX

ONNX export of [YOLOv8n](https://huggingface.co/Kalray/yolov8), the nano variant of Ultralytics YOLOv8 object detection model. Trained on COCO with 80-class output. Optimized for real-time inference.

Mirrored for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.

## Original Source

- **Repository:** [Kalray (Ultralytics YOLOv8)](https://huggingface.co/Kalray/yolov8)
- **License:** agpl-3.0

## Usage with inference4j

```java
try (YoloV8 model = YoloV8.fromPretrained("models/yolov8n")) {
    List<Detection> detections = model.detect(Path.of("street.jpg"));
    detections.forEach(d -> System.out.printf("%s (%.0f%%) at [%.0f, %.0f, %.0f, %.0f]%n",
        d.label(), d.confidence() * 100,
        d.box().x1(), d.box().y1(), d.box().x2(), d.box().y2()));
}
```

## Model Details

| Property | Value |
|----------|-------|
| Architecture | YOLOv8 Nano (single-shot detector) |
| Task | Object detection (COCO 80 classes) |
| Input | `[1, 3, 640, 640]` — RGB, normalized 0-1 |
| Output | `[1, 84, 8400]` — bounding boxes + class scores |
| Post-processing | Non-Maximum Suppression (NMS) required |
| Original framework | PyTorch (Ultralytics) |

## License

This model is licensed under the [AGPL-3.0 License](https://www.gnu.org/licenses/agpl-3.0.en.html). Original model by [Ultralytics](https://ultralytics.com/), hosted by [Kalray](https://huggingface.co/Kalray).