Upload efficientnet-lite4 ONNX model
Browse files- README.md +47 -0
- model.onnx +3 -0
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: onnx
|
| 3 |
+
tags:
|
| 4 |
+
- efficientnet
|
| 5 |
+
- image-classification
|
| 6 |
+
- imagenet
|
| 7 |
+
- computer-vision
|
| 8 |
+
- onnx
|
| 9 |
+
- inference4j
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
pipeline_tag: image-classification
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# EfficientNet-Lite4 — ONNX
|
| 15 |
+
|
| 16 |
+
ONNX export of [EfficientNet-Lite4](https://huggingface.co/onnx/EfficientNet-Lite4), a lightweight and efficient image classification model optimized for mobile/edge deployment. Trained on ImageNet with 1000-class output.
|
| 17 |
+
|
| 18 |
+
Mirrored for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.
|
| 19 |
+
|
| 20 |
+
## Original Source
|
| 21 |
+
|
| 22 |
+
- **Repository:** [ONNX](https://huggingface.co/onnx/EfficientNet-Lite4)
|
| 23 |
+
- **License:** apache-2.0
|
| 24 |
+
|
| 25 |
+
## Usage with inference4j
|
| 26 |
+
|
| 27 |
+
```java
|
| 28 |
+
try (EfficientNet model = EfficientNet.fromPretrained("models/efficientnet-lite4")) {
|
| 29 |
+
List<Classification> results = model.classify(Path.of("cat.jpg"));
|
| 30 |
+
results.forEach(c -> System.out.printf("%s: %.2f%%%n", c.label(), c.score() * 100));
|
| 31 |
+
}
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Model Details
|
| 35 |
+
|
| 36 |
+
| Property | Value |
|
| 37 |
+
|----------|-------|
|
| 38 |
+
| Architecture | EfficientNet-Lite4 (compound-scaled CNN) |
|
| 39 |
+
| Task | Image classification (ImageNet 1000 classes) |
|
| 40 |
+
| Input | `[batch, 224, 224, 3]` — RGB, pixel values 0-255 |
|
| 41 |
+
| Output | `[batch, 1000]` — class probabilities |
|
| 42 |
+
| ONNX opset | 11 |
|
| 43 |
+
| Original framework | TensorFlow Lite → ONNX |
|
| 44 |
+
|
| 45 |
+
## License
|
| 46 |
+
|
| 47 |
+
This model is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Original model from [ONNX](https://huggingface.co/onnx).
|
model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d111689907c06eea7c82e4833ddef758da6453b9d4cf60b7e99ca05c7cbd9c12
|
| 3 |
+
size 51946641
|