Code Monkey home page Code Monkey logo

recognition's Introduction

A general pipeline

  1. Create a new extension for your project.
bash scripts/add_extension.sh my_extension

This creates a following folder structure:

extensions/my_extension/
├── dataloaders
├── models
├── runners
├── scripts
└── config.yaml
  1. Define your dataloaders, models, runners, scripts in corresponding directories.

    • Each file in models dir should implement get_args, get_net, get_native_transform functions.
    • ...

    Use classification.py dataloader/runner as an example and resnet_classification.py as an example of a model.

Classification

Classification works out of the box, runner, dataloader are already implemented there. However, for clarity, you need to create an extension first.

bash scripts/add_extension.sh my_classification

Here is an easy way to solve a classification problem.

  1. Prepare your dataset to have this structure:
dataset
├── class1
├── class2
└── class3

Images for each class in a corresponding folder.

  1. Run this script to gather images and split into train and validation.
python scripts/train_test_split.py --classes_dir path/to/dataset --save_dir extensions/my_extension/data/splits --test_size 0.
  1. Learn something
python train.py --extension my_classification --config_name classification 

recognition's People

Contributors

dmitryulyanov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.