Instructions to use sgugger/custom-resnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sgugger/custom-resnet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sgugger/custom-resnet", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("sgugger/custom-resnet", trust_remote_code=True) model = AutoModelForImageClassification.from_pretrained("sgugger/custom-resnet", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
2350837 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:25a41ac7007f542318ceaadf94bf3d75c55d1813219a634b35d6722f10fc91c2
size 102626153
|