Views
No views yet
1try (Yolo26 model = Yolo26.fromPretrained("models/yolo26n")) {
2 List<Detection> detections = model.detect(Path.of("street.jpg"));
3 detections.forEach(d -> System.out.printf("%s (%.0f%%) at [%.0f, %.0f, %.0f, %.0f]%n",
4 d.label(), d.confidence() * 100,
5 d.box().x1(), d.box().y1(), d.box().x2(), d.box().y2()));
6}| Property | Value |
|---|---|
| Architecture | YOLO26 Nano (NMS-free single-shot detector) |
| Task | Object detection (COCO 80 classes) |
| Input | [1, 3, 640, 640] — RGB, normalized 0-1 |
| Output | NMS-free — outputs filtered detections directly |
| Post-processing | None required (built-in NMS) |
| Original framework | PyTorch (Ultralytics) |