How to use from the
Use from the
Transformers library
# 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")
Quick Links

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.

Downloads last month
-
Safetensors
Model size
27.8M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Micky911/pets-convnext-sagemaker

Quantized
(14)
this model

Dataset used to train Micky911/pets-convnext-sagemaker

Space using Micky911/pets-convnext-sagemaker 1