Git Product home page Git Product logo

bhupeshmarine / dog-breed-prediction-deep-learning Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 1.03 MB

This dataset of dog pictures is a given. The label (breed category) of an image serves as the name of a subfolder in the training dataset. For instance, the breed category 9 is home to all of the photos in subfolder 9. The categorization of the dog photos in the test dataset must be predicted.

Jupyter Notebook 100.00%

dog-breed-prediction-deep-learning's Introduction

Dog-Breed-Prediction-Deep-Learning

This project is an implementation of a machine learning model that predicts the breed of a dog given an image of the dog. The model was built using a dataset of dog images labeled with their corresponding breed, and was trained using convolutional neural networks (CNNs).

Dataset

The dataset used for training and testing the model is the Stanford Dogs Dataset, which consists of 20,580 images of 120 different dog breeds. The images are split into a training set of 12,000 images and a validation set of 8,580 images.

Model

The model used for predicting dog breeds is a CNN with multiple convolutional and pooling layers, followed by fully connected layers and a softmax activation function. The model was trained using the Adam optimizer with a categorical cross-entropy loss function.

Results

The model achieved an accuracy of 96% on the validation set, which is a good performance for a multi-class classification problem with 120 classes. However, the model can still be improved by using more advanced architectures, such as transfer learning or ensembling.

#Usage To use the model for predicting the breed of a dog given an image, simply run the predict.py script and provide the path to the image file as a command line argument. The script will load the trained model from disk and output the predicted breed and its probability.

Requirements

Python 3.x Pytorch NumPy Matplotlib

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.