vccarvalho11 commited on
Commit
9bf5b55
·
verified ·
1 Parent(s): 7ec6c66

Upload resnet50-v1-7 ONNX model

Browse files
Files changed (2) hide show
  1. README.md +46 -0
  2. model.onnx +3 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: onnx
3
+ tags:
4
+ - resnet
5
+ - image-classification
6
+ - imagenet
7
+ - computer-vision
8
+ - onnx
9
+ - inference4j
10
+ license: mit
11
+ pipeline_tag: image-classification
12
+ ---
13
+
14
+ # ResNet-50 v1.7 — ONNX
15
+
16
+ ONNX export of [ResNet-50](https://huggingface.co/onnxmodelzoo/resnet50-v1-7), a deep residual network for image classification trained on ImageNet. 50-layer variant 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 Model Zoo](https://huggingface.co/onnxmodelzoo/resnet50-v1-7)
23
+ - **License:** mit
24
+
25
+ ## Usage with inference4j
26
+
27
+ ```java
28
+ try (ResNet model = ResNet.fromPretrained("models/resnet50")) {
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 | ResNet-50 (50 layers, residual connections) |
39
+ | Task | Image classification (ImageNet 1000 classes) |
40
+ | Input | `[batch, 3, 224, 224]` — RGB, ImageNet-normalized |
41
+ | Output | `[batch, 1000]` — class probabilities |
42
+ | Original framework | ONNX Model Zoo |
43
+
44
+ ## License
45
+
46
+ This model is licensed under the [MIT License](https://opensource.org/licenses/MIT). Original model from the [ONNX Model Zoo](https://github.com/onnx/models).
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af16a04a6ec48ac494065d4439fe9dea590d337b9ca6dc328160ccf04a217b9c
3
+ size 102583340