AI-For-Beginners/translations/en/lessons/4-ComputerVision/07-ConvNets/lab
localizeflow[bot] 719bf52bfa Fallback snapshot commit due to git add failure 2026-01-15 11:32:25 +00:00
..
PetFaces.ipynb 🌐 Update translations via Co-op Translator 2025-10-03 14:59:12 +00:00
README.md Fallback snapshot commit due to git add failure 2026-01-15 11:32:25 +00:00

README.md

Classification of Pets Faces

Lab Assignment from AI for Beginners Curriculum.

Task

Imagine you need to develop an application for a pet nursery to catalog all pets. One of the great features of such an application would be automatically identifying the breed from a photograph. This can be successfully achieved using neural networks.

Your task is to train a convolutional neural network to classify different breeds of cats and dogs using the Pet Faces dataset.

The Dataset

We will use the Oxford-IIIT Pet Dataset, which contains images of 37 different breeds of dogs and cats.

Dataset we will deal with

To download the dataset, use this code snippet:

!wget https://thor.robots.ox.ac.uk/~vgg/data/pets/images.tar.gz
!tar xfz images.tar.gz
!rm images.tar.gz

Note: The Oxford-IIIT Pet Dataset images are organized by filename (e.g., Abyssinian_1.jpg, Bengal_2.jpg). The notebook includes code to organize these images into breed-specific subdirectories for easier classification.

Starting Notebook

Begin the lab by opening PetFaces.ipynb

Takeaway

You have tackled a relatively complex problem of image classification from scratch! Despite the large number of classes, you were able to achieve reasonable accuracy! Its also a good idea to measure top-k accuracy, as some classes can be easily confused, even by humans, due to their similarities.


Disclaimer:
This document has been translated using the AI translation service Co-op Translator. While we strive for accuracy, please note that automated translations may contain errors or inaccuracies. The original document in its native language should be considered the authoritative source. For critical information, professional human translation is recommended. We are not liable for any misunderstandings or misinterpretations arising from the use of this translation.