Instructions to use Micky911/pets-convnext-sagemaker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Micky911/pets-convnext-sagemaker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Micky911/pets-convnext-sagemaker") 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("Micky911/pets-convnext-sagemaker") model = AutoModelForImageClassification.from_pretrained("Micky911/pets-convnext-sagemaker", device_map="auto") - Transformers.js
How to use Micky911/pets-convnext-sagemaker with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Micky911/pets-convnext-sagemaker'); - Notebooks
- Google Colab
- Kaggle
Download README.md from Micky911/pets-convnext-sagemaker: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/Micky911/pets-convnext-sagemaker/resolve/main/README.md
- Command line
-
hf download hf://Micky911/pets-convnext-sagemaker/README.md
-
curl -L -o README.md https://huggingface.co/Micky911/pets-convnext-sagemaker/resolve/main/README.md
license: cc-by-sa-4.0
library_name: transformers
pipeline_tag: image-classification
base_model: facebook/convnext-tiny-224
datasets:
- timm/oxford-iiit-pet
tags:
- image-classification
- sagemaker
- oxford-pets
- onnx
- transformers.js
Pet breed classifier (37 cat and dog breeds)
Fine-tuned on the Oxford-IIIT Pet dataset (80/20 stratified split; photo counts in the table below) with a SageMaker training job, for a Distributed Computing class demo.
| base model | facebook/convnext-tiny-224 |
| epochs | 5 |
| validation accuracy | 93.2% |
| trained on | SageMaker training job pets-pytorch-2026-11-25-17-25-51-447 (ml.g6.xlarge) |
| billable seconds | 239 |
| photos | 1,480 training / 370 validation |
Use it
from transformers import pipeline
classifier = pipeline("image-classification", model="Micky911/pets-convnext-sagemaker")
classifier("my_cat.jpg")
Breeds: Abyssinian, Bengal, Birman, Bombay, British Shorthair, Egyptian Mau, Maine Coon, Persian, Ragdoll, Russian Blue, Siamese, Sphynx, American Bulldog, American Pit Bull Terrier, Basset Hound, Beagle, Boxer, Chihuahua, English Cocker Spaniel, English Setter, German Shorthaired, Great Pyrenees, Havanese, Japanese Chin, Keeshond, Leonberger, Miniature Pinscher, Newfoundland, Pomeranian, Pug, Saint Bernard, Samoyed, Scottish Terrier, Shiba Inu, Staffordshire Bull Terrier, Wheaten Terrier, Yorkshire Terrier.
Dataset: Parkhi et al., "Cats and Dogs", CVPR 2012; images under CC BY-SA 4.0.