Instructions to use AXERA-TECH/mobilenetv3-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use AXERA-TECH/mobilenetv3-small with timm:
import timm model = timm.create_model("hf_hub:AXERA-TECH/mobilenetv3-small", pretrained=True) - Notebooks
- Google Colab
- Kaggle
| """MobileNetV3-Small classification inference on AX650.""" | |
| import numpy as np | |
| import axengine | |
| class MobileNetV3Classifier: | |
| def __init__(self, model_path: str): | |
| self.sess = axengine.InferenceSession(model_path) | |
| self.input_name = self.sess.get_inputs()[0].name | |
| def classify(self, image: np.ndarray) -> np.ndarray: | |
| """image: float32 NCHW [1,3,224,224], range [0,1]""" | |
| return self.sess.run(None, {self.input_name: image})[0] | |