Git Product home page Git Product logo

catdog's Introduction

catdog

a suite for training models that know cats from dogs

Setup

Using virtual environments

pyenv is a great tool for creating self-contained python environments. Rather than sully your system python's dependency namespace, use a virtual environment. Install pyenv. Once installed, wiew available python versions to install:

pyenv install -l

and then install one (preferably a recent version--i.e. >3.6):

pyenv install 3.10.7

Now to create the virtual environment. The following will create a virtual environment called "catdog":

pyenv virtualenv 3.10.7 catdog

The created environment can be activated with:

pyenv activate catdog

Now that you've got an active virtual environment, you can install this project and it's console scripts:

pip install .

This will package the current project's current working state and install the catdog project along with its dependencies. If you're wanting to avoid the need to re-install after changing project files, please do install using pip's "editable mode".

Usage

catdog comes which a couple of console scripts:

  • predict
  • train

Future work will improve the ergonomics of these scripts. The get the packaged model (clerverly named "model.h5") to classify your sample image, place an image of a cat or dog in the "data/samples/" directory and run something like this:

predict model.h5 <sample-file-name>

catdog's People

Contributors

withtwoemms avatar

Watchers

 avatar

catdog's Issues

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.