Instructions to use Jape13/oxford-pets-convnext-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jape13/oxford-pets-convnext-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Jape13/oxford-pets-convnext-tiny") 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("Jape13/oxford-pets-convnext-tiny") model = AutoModelForImageClassification.from_pretrained("Jape13/oxford-pets-convnext-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Oxford-IIIT Pet classifier (ConvNeXt)
ConvNeXt image classifier fine-tuned on Colab (GPU) on the Oxford-IIIT Pet dataset (37 cat and dog breeds), with experiments tracked in MLflow.
Served via the Space Jape13/oxford-pets-api.
Usage
from transformers import pipeline
clf = pipeline("image-classification", model="Jape13/oxford-pets-convnext-tiny")
clf("cat.jpg", top_k=5)
- Downloads last month
- 3,241