Upload yolox-tiny ONNX model
Browse files- README.md +63 -0
- model.onnx +3 -0
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: onnx
|
| 3 |
+
tags:
|
| 4 |
+
- yolox
|
| 5 |
+
- object-detection
|
| 6 |
+
- coco
|
| 7 |
+
- computer-vision
|
| 8 |
+
- apache-2.0
|
| 9 |
+
- onnx
|
| 10 |
+
- inference4j
|
| 11 |
+
license: apache-2.0
|
| 12 |
+
pipeline_tag: object-detection
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# YOLOX-Tiny — ONNX
|
| 16 |
+
|
| 17 |
+
The official ONNX export of YOLOX-Tiny from Megvii's [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) 0.1.1rc0 release, an anchor-free YOLO detector trained on COCO (80 classes). Apache-2.0 code and weights, a permissive alternative to AGPL-licensed YOLOv8 and YOLO26.
|
| 18 |
+
|
| 19 |
+
Mirrored for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.
|
| 20 |
+
|
| 21 |
+
## Original Source
|
| 22 |
+
|
| 23 |
+
- **Repository:** [Megvii (YOLOX)](https://github.com/Megvii-BaseDetection/YOLOX)
|
| 24 |
+
- **License:** apache-2.0
|
| 25 |
+
|
| 26 |
+
## Usage with inference4j
|
| 27 |
+
|
| 28 |
+
```java
|
| 29 |
+
try (ObjectDetector detector = YoloXDetector.tiny().build()) {
|
| 30 |
+
List<Detection> detections = detector.detect(Path.of("street.jpg"));
|
| 31 |
+
detections.forEach(d -> System.out.printf("%s (%.0f%%) at [%.0f, %.0f, %.0f, %.0f]%n",
|
| 32 |
+
d.label(), d.confidence() * 100,
|
| 33 |
+
d.box().x1(), d.box().y1(), d.box().x2(), d.box().y2()));
|
| 34 |
+
}
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Model Details
|
| 38 |
+
|
| 39 |
+
| Property | Value |
|
| 40 |
+
|----------|-------|
|
| 41 |
+
| Architecture | YOLOX-Tiny (anchor-free, decoupled head), 5.06M parameters |
|
| 42 |
+
| Task | Object detection (COCO 80 classes) |
|
| 43 |
+
| COCO AP | 32.8 (val2017, 416x416, as reported by the YOLOX authors) |
|
| 44 |
+
| Input | `images`: `[1, 3, 416, 416]` float32, static |
|
| 45 |
+
| Pre-processing | Letterbox to the top-left corner: scale `r = min(416 / h, 416 / w)`, bilinear resize to `(int(w * r), int(h * r))`, pad right and bottom with 114. Raw 0-255 **BGR**, no mean/std, NCHW float32 |
|
| 46 |
+
| Output | `output`: `[1, 3549, 85]`: per anchor point `[x, y, w, h, objectness, 80 class scores]`, box not yet decoded |
|
| 47 |
+
| Post-processing | Decode per anchor point over strides 8, 16, 32 (row-major grid, stride 8 first): `cx = (x + grid_x) * stride`, `cy = (y + grid_y) * stride`, `w = exp(w) * stride`, `h = exp(h) * stride`. Score = objectness × class score (both already sigmoid), take the best class, divide boxes by `r`. NMS is not in the graph: the reference demo uses class-agnostic NMS at IoU 0.45 |
|
| 48 |
+
| Labels | COCO-80 in the usual order (0 = person ... 79 = toothbrush) |
|
| 49 |
+
| Original framework | PyTorch 1.7, ONNX opset 11 |
|
| 50 |
+
|
| 51 |
+
## License
|
| 52 |
+
|
| 53 |
+
This model is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Original model by [Megvii](https://github.com/Megvii-BaseDetection/YOLOX) (Ge et al., *YOLOX: Exceeding YOLO Series in 2021*, arXiv:2107.08430).
|
| 54 |
+
|
| 55 |
+
## Provenance
|
| 56 |
+
|
| 57 |
+
| Part | Origin |
|
| 58 |
+
|------|--------|
|
| 59 |
+
| Code | [Megvii-BaseDetection/YOLOX](https://github.com/Megvii-BaseDetection/YOLOX), Apache-2.0 |
|
| 60 |
+
| Weights | [yolox_tiny.pth](https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yolox_tiny.pth), YOLOX 0.1.1rc0 release, Apache-2.0 |
|
| 61 |
+
| ONNX export | [yolox_tiny.onnx](https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yolox_tiny.onnx), the official export from the same release |
|
| 62 |
+
| Training data | COCO 2017 train (80 classes), trained from scratch: the YOLOX paper drops ImageNet pre-training |
|
| 63 |
+
| Changes in this mirror | None: files copied unchanged |
|
model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:427cc366d34e27ff7a03e2899b5e3671425c262ea2291f88bb942bc1cc70b0f7
|
| 3 |
+
size 20219662
|