--- 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](https://www.robots.ox.ac.uk/~vgg/data/pets/) (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](https://huggingface.co/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 ```python 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.