This project utilizes pre-trained convolutional neural networks (CNNs) to classify images of dogs and identify their breeds. The primary objectives are:
- To accurately distinguish between dog and non-dog images.
- To classify the breeds of the identified dogs.
The project employs popular CNN architectures such as VGG, AlexNet, and ResNet to achieve high accuracy and efficiency in image classification.
- Installation Instructions
- Usage
- Results
- Contributing
- License
- Contact Information
- Additional Resources
-
Clone the repository:
git clone https://github.com/bhaveshasasik/dog_image_classifier.git
-
Navigate to the project directory:
cd dog_image_classifier
-
Install the required packages:
pip install -r requirements.txt
To classify images, run the following command:
python check_images.py --dir pet_images/ --arch vgg --dogfile dognames.txt
--dir
: Specify the directory containing the pet images (e.g.,pet_images/
).--arch
: Choose the CNN architecture to use (options:vgg
,alexnet
,resnet
).--dogfile
: Specify the file containing the list of valid dog breeds (e.g.,dognames.txt
).
The project achieved the following results for dog breed classification:
- Accuracy in breed classification: 93.3%
- Correctly classified dog images: 100%
- Correctly classified non-dog images: 100%
- Accuracy in breed classification: 80.0%
- Correctly classified dog images: 100%
- Correctly classified non-dog images: 100%
- Accuracy in breed classification: 90.0%
- Correctly classified dog images: 100%
- Correctly classified non-dog images: 90%
This project is licensed under the MIT License.
For questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: Bhavesha Sasikumar