Instructions to use microsoft/resnet-18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/resnet-18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="microsoft/resnet-18") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("microsoft/resnet-18") model = AutoModelForImageClassification.from_pretrained("microsoft/resnet-18", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model
Beep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [max-tao](https://huggingface.co/max-tao), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!dee4006
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (82f42eb8d95bdc3ca8d2b098c499b8817a3bca97) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>f45a6fa
-
Add TF weights (#1)
- Add TF weights (ea4191cd0ee345d27d72bf01001bdbddc41926a2)2f536bd
-
Fix code example
0695923
-
Upload README.md
cb29842
-
Add feature extractor
b84c5cd -
Add model
e32f4f8 -
initial commit
f66f0ac