Giter Site home page Giter Site logo

no_waste_com_ua's Introduction

nowaste.com.ua secondary materials classifier project

Project description

This project is a part of the nowaste.com.ua project. It is a classifier for secondary materials.

How to train models

Download data

  1. Download data from Kaggle Garbage Classification. Or use your own dataset with the same structure(classes are separeted by folders).
  2. Unpack data to ./data/kaggle-ds folder for example.

Training routine

You can train model using next cli commands consecutively:

  1. Separate data to train and test sets
python .\src\garbage_classifier\cli.py split-data-folder .\data\kaggle-ds .\data\splitted\ 0.2

Output: .\data\splitted\train and .\data\splitted\test folders with train and test data. 2. Train model Login to wandb using wandb login command. Then run training:

python .\src\garbage_classifier\cli.py train-and-log-wandb .\config\training.json .\data\splitted\train .\data\splitted\test .\data\model\output  special-project

Or you can run training without logging to wandb:

python .\src\garbage_classifier\cli.py train-and-save .\config\training.json .\data\splitted\train .\data\splitted\test .\data\model\output

Output: model and it's model card inside .\data\model\output folder. 3. Upload model to wandb registry Note! You need to login to wandb using wandb login command.

python .\src\garbage_classifier\cli.py upload-to-registry wandb-entity-name special-project model-name .\data\model\output .\config\classes.json

no_waste_com_ua's People

Contributors

rosklyar avatar

Watchers

 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.