Downloads · 30 days
9
12% of all-time downloads
OpenVINO/efficientnet_b2-int8-ov
efficientnet_b2-int8-ov is a image classification model from OpenVINO. Use it when you need a label for an image. The card lists the license as bsd-3-clause.
- Model creator: torchvision - Original model: efficientnetb2
Downloads · 30 days
9
12% of all-time downloads
All-time downloads
78
Public
Repo size
26.9 MB
Likes
0
Public
Click a slice to open those files.
.bin13.4 MB · 95%
From the Hugging Face model README
This is a torchvision version of efficientnet_b2 model converted to the OpenVINO™ IR (Intermediate Representation) format with weights compressed to INT8.
Weight compression was performed using nncf.quantize with the following parameters:
For more information on quantization, check the OpenVINO model optimization guide.
The provided OpenVINO™ IR model is compatible with:
pip install openvino-model-api[huggingface]
<!-- markdownlint-disable MD029 -->
import cv2
from model_api.models import Model
from model_api.visualizer import Visualizer
# 1. Load model
model = Model.from_pretrained("OpenVINO/efficientnet_b2-int8-ov")
# 2. Load image
image = cv2.imread("image.jpg")
# 3. Run inference
result = model(image)
# 4. Visualize and save results
vis = Visualizer().render(image, result)
cv2.imwrite("output.jpg", vis)
For more examples and possible optimizations, refer to the Model API Documentation.
Check the original model implementation for limitations.
The original model is distributed under the BSD-3-Clause license. More details can be found in https://github.com/pytorch/vision.
Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See Intel’s Global Human Rights Principles. Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.