Instructions to use padam5699/pets-convnext-sagemaker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use padam5699/pets-convnext-sagemaker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="padam5699/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("padam5699/pets-convnext-sagemaker") model = AutoModelForImageClassification.from_pretrained("padam5699/pets-convnext-sagemaker", device_map="auto") - Transformers.js
How to use padam5699/pets-convnext-sagemaker with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'padam5699/pets-convnext-sagemaker'); - Notebooks
- Google Colab
- Kaggle
Pet breed classifier (37 cat and dog breeds)
Fine-tuned on the Oxford-IIIT Pet dataset (80/20 stratified split of all 7,349 images) with a SageMaker training job, for a Distributed Computing class demo.
| base model | facebook/convnext-tiny-224 |
| epochs | 5 |
| validation accuracy | 94.1% |
| trained on | SageMaker training job pets-pytorch-2026-11-04-20-10-08-796 (ml.g6.xlarge) |
| billable seconds | 202 |
Use it
from transformers import pipeline
classifier = pipeline("image-classification", model="padam5699/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
- 42
Model tree for padam5699/pets-convnext-sagemaker
Base model
facebook/convnext-tiny-224