Upload folder using huggingface_hub
Browse files- .gitattributes +6 -0
- LibreYOLOXs.onnx +3 -0
- LibreYOLOXs.pt +3 -0
- README.md +155 -0
- qaihub/LibreYOLOXs_fp32.dlc +3 -0
- qaihub/LibreYOLOXs_int8.dlc +3 -0
- qairt/LibreYOLOXs_fp32.dlc +3 -0
- qairt/LibreYOLOXs_int8.dlc +3 -0
- snpe/LibreYOLOXs_fp32.dlc +3 -0
- snpe/LibreYOLOXs_int8.dlc +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
qaihub/LibreYOLOXs_fp32.dlc filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
qaihub/LibreYOLOXs_int8.dlc filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
qairt/LibreYOLOXs_fp32.dlc filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
qairt/LibreYOLOXs_int8.dlc filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
snpe/LibreYOLOXs_fp32.dlc filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
snpe/LibreYOLOXs_int8.dlc filter=lfs diff=lfs merge=lfs -text
|
LibreYOLOXs.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14c84fa7b4dd4a0068e236ce8fc58ae9613b63b8a90376432dcbcf643a3dff8f
|
| 3 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: object-detection
|
| 6 |
+
tags:
|
| 7 |
+
- object-detection
|
| 8 |
+
- yolox
|
| 9 |
+
- onnx
|
| 10 |
+
- dlc
|
| 11 |
+
- qualcomm
|
| 12 |
+
- snapdragon
|
| 13 |
+
- qairt
|
| 14 |
+
- snpe
|
| 15 |
+
- qai-hub
|
| 16 |
+
- edge-inference
|
| 17 |
+
base_model: LibreYOLO/LibreYOLOXs
|
| 18 |
+
datasets:
|
| 19 |
+
- merve/coco
|
| 20 |
---
|
| 21 |
+
|
| 22 |
+
# LibreYOLOXs Qualcomm-Optimized Model Artifacts
|
| 23 |
+
|
| 24 |
+
This directory is the shared artifact location for the notebooks in
|
| 25 |
+
[`../notebooks/`](../notebooks/). The repository tracks the documentation and
|
| 26 |
+
ignore rules here; model binaries are downloaded or generated locally when you
|
| 27 |
+
run the workflows.
|
| 28 |
+
|
| 29 |
+
The same source model is used for three deployment paths:
|
| 30 |
+
|
| 31 |
+
- **QAIRT** local conversion and quantization
|
| 32 |
+
- **SNPE** local conversion and quantization
|
| 33 |
+
- **QAI Hub** cloud compilation, quantization, and profiling
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## Model overview
|
| 38 |
+
|
| 39 |
+
| Property | Value |
|
| 40 |
+
|---|---|
|
| 41 |
+
| Architecture | YOLOX-Small (LibreYOLOXs) |
|
| 42 |
+
| Framework | [LibreYOLO](https://github.com/LibreYOLO/libreyolo) |
|
| 43 |
+
| Task | Object detection |
|
| 44 |
+
| Base checkpoint | [LibreYOLO/LibreYOLOXs](https://huggingface.co/LibreYOLO/LibreYOLOXs) |
|
| 45 |
+
| Input tensor | `images` |
|
| 46 |
+
| Input shape | `1 x 3 x 640 x 640` |
|
| 47 |
+
| Input format | BGR `float32`, NCHW, values in `0-255` |
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## Artifact flow
|
| 52 |
+
|
| 53 |
+
```text
|
| 54 |
+
LibreYOLOXs.pt
|
| 55 |
+
|
|
| 56 |
+
`---> LibreYOLOXs.onnx
|
| 57 |
+
|\
|
| 58 |
+
| `---> qairt/LibreYOLOXs_fp32.dlc
|
| 59 |
+
| `---> qairt/LibreYOLOXs_int8.dlc
|
| 60 |
+
|
|
| 61 |
+
| `---> snpe/LibreYOLOXs_fp32.dlc
|
| 62 |
+
| `---> snpe/LibreYOLOXs_int8.dlc
|
| 63 |
+
|
|
| 64 |
+
`---> qaihub/LibreYOLOXs_fp32.dlc
|
| 65 |
+
`---> qaihub/LibreYOLOXs_int8.dlc
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
All three notebooks reuse the same exported ONNX model.
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
## Expected files
|
| 73 |
+
|
| 74 |
+
| Path | Produced by | Description |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| `LibreYOLOXs.pt` | All notebooks | Base PyTorch checkpoint, downloaded on demand |
|
| 77 |
+
| `LibreYOLOXs.onnx` | All notebooks | Shared ONNX export used by all backend flows |
|
| 78 |
+
| `qairt/LibreYOLOXs_fp32.dlc` | QAIRT notebook | FP32 DLC produced by `qairt-converter` |
|
| 79 |
+
| `qairt/LibreYOLOXs_int8.dlc` | QAIRT notebook | INT8 DLC produced by `qairt-quantizer` |
|
| 80 |
+
| `snpe/LibreYOLOXs_fp32.dlc` | SNPE notebook | FP32 DLC produced by `snpe-onnx-to-dlc` |
|
| 81 |
+
| `snpe/LibreYOLOXs_int8.dlc` | SNPE notebook | INT8 DLC produced by `snpe-dlc-quantize` |
|
| 82 |
+
| `qaihub/LibreYOLOXs_fp32.dlc` | QAI Hub notebook | FP32 DLC downloaded from a cloud compile job |
|
| 83 |
+
| `qaihub/LibreYOLOXs_int8.dlc` | QAI Hub notebook | INT8 DLC downloaded from cloud quantize + compile jobs |
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## Tensor contract
|
| 88 |
+
|
| 89 |
+
### Input
|
| 90 |
+
|
| 91 |
+
| Property | Value |
|
| 92 |
+
|---|---|
|
| 93 |
+
| Name | `images` |
|
| 94 |
+
| Shape | `1 x 3 x 640 x 640` |
|
| 95 |
+
| Layout | NCHW |
|
| 96 |
+
| Data type | `float32` |
|
| 97 |
+
| Color order | BGR |
|
| 98 |
+
|
| 99 |
+
Preprocessing used by the notebooks:
|
| 100 |
+
|
| 101 |
+
1. Letterbox-resize to `640 x 640`.
|
| 102 |
+
2. Pad with value `114`.
|
| 103 |
+
3. Keep BGR channel order.
|
| 104 |
+
4. Keep values in the `0-255` range.
|
| 105 |
+
5. Transpose from HWC to CHW before serialization / inference input assembly.
|
| 106 |
+
|
| 107 |
+
### Outputs
|
| 108 |
+
|
| 109 |
+
The exported ONNX model is validated in each notebook before backend-specific
|
| 110 |
+
compilation. The documentation in this directory assumes the shared decoded
|
| 111 |
+
output layout used by the notebooks:
|
| 112 |
+
|
| 113 |
+
| Output | Shape | Description |
|
| 114 |
+
|---|---|---|
|
| 115 |
+
| `bboxes` | `1 x 8400 x 4` | Bounding-box coordinates |
|
| 116 |
+
| `scores` | `1 x 8400 x 81` | Objectness plus 80 COCO class scores |
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## Calibration data
|
| 121 |
+
|
| 122 |
+
INT8 flows use representative data prepared by the notebooks from COCO 2017
|
| 123 |
+
validation images:
|
| 124 |
+
|
| 125 |
+
- source images are staged under `docker/notebooks/dataset/`
|
| 126 |
+
- calibration tensors are written to `docker/notebooks/subset/calib/`
|
| 127 |
+
- validation tensors and metadata are written to `docker/notebooks/subset/val/`
|
| 128 |
+
- manifests are written to `subset/calib/filenames.txt` and `subset/val/filenames.txt`
|
| 129 |
+
|
| 130 |
+
The local QAIRT and SNPE quantizers read those manifests directly. The QAI Hub
|
| 131 |
+
notebook loads the same `.raw` tensors into NumPy arrays and submits them to the
|
| 132 |
+
cloud quantization job.
|
| 133 |
+
|
| 134 |
+
---
|
| 135 |
+
|
| 136 |
+
## Downloading published artifacts
|
| 137 |
+
|
| 138 |
+
Published files are hosted on Hugging Face:
|
| 139 |
+
|
| 140 |
+
- [fabricionarcizo/LibreYOLOXs](https://huggingface.co/fabricionarcizo/LibreYOLOXs)
|
| 141 |
+
|
| 142 |
+
Example download:
|
| 143 |
+
|
| 144 |
+
```bash
|
| 145 |
+
huggingface-cli download fabricionarcizo/LibreYOLOXs \
|
| 146 |
+
--local-dir docker/models \
|
| 147 |
+
--exclude "*.gitattributes" "README.md"
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
You can also generate the same artifact layout locally by running the notebooks
|
| 151 |
+
in [`../notebooks/`](../notebooks/).
|
| 152 |
+
|
| 153 |
+
---
|
| 154 |
+
|
| 155 |
+
## Related documentation
|
| 156 |
+
|
| 157 |
+
- [`../README.md`](../README.md) - Docker environment and setup
|
| 158 |
+
- [`../notebooks/README.md`](../notebooks/README.md) - notebook workflows and generated data layout
|
qaihub/LibreYOLOXs_fp32.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dcca8ae147c9eb07f58e24c98c8e50e18a2890c46e7db13b0c7e7f1008dbd020
|
| 3 |
+
size 36185932
|
qaihub/LibreYOLOXs_int8.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bfc361ebfb9a2ed4f5880515a9a637a25e6ebeca7457d6d9d64d6731e3cc54d
|
| 3 |
+
size 9980684
|
qairt/LibreYOLOXs_fp32.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35281e677dc2aaf2f93c179a10a69a05356951c30ae3c46698ce0e10ff2491d4
|
| 3 |
+
size 36185284
|
qairt/LibreYOLOXs_int8.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:141566b8f5c94243f207d0342202cda0955fb348d44d60b7f2f75f3ecdfea026
|
| 3 |
+
size 9270924
|
snpe/LibreYOLOXs_fp32.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c49527f64a67b539310b75304e570226a4f3ecf6cdacb3b8e21905fb04fbfd7f
|
| 3 |
+
size 36181228
|
snpe/LibreYOLOXs_int8.dlc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8f07871461a758c17032ccec53146ae5946e42aed6e835ee89052490128a600
|
| 3 |
+
size 9272956
|