Giter VIP home page Giter VIP logo

dogs_vs_cats's Introduction

Dogs vs Cats 🐢🐱

Models to detect binary categories of similar images. It's designed to train relatively quicky (at least for a neural-network model) without large hardware requirements. Accuracy could likely be improved with additional model complexity.

There are two models here, a pre-trained resnet, and a convolutional network from scratch.

The from-scratch network has been used on Kaggle's Dog/Kat competition dataset with ~80% accuracy, rated on Kaggle's external test set as 0.37063 log loss. The pretrained resnet performs on the same dataset with ~95% accuracy, rated on Kaggle's external test set as 0.11149 log loss.

This repo can be used for any similar problem if set up with:

  • Test data in two labelled folders under 'data/test'
  • Train data in two labelled under 'data/train'
  • Data you wish to be labelled within 'data/to_predict/all'
  • Example / Model output (with all labels) in 'sample_submission.csv'

First run 'cnn.py'/'resnet.py' in order to produce the initial model weighting. Then run 'cnn_predictions.py'/'resnet_predictions.py' to produce a table of category predictions/labels.

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.