Code Monkey home page Code Monkey logo

anything_color_recognition's Introduction

Anything Color Recognition

In this repository, the codes for training anything color recognition are provided. This is a pytorch implementation of following paper: https://arxiv.org/pdf/1510.07391.pdf named Vehicle Color Recognition using Convolutional Neural Network

img.png

The colors are as follows: [Black, Blue, Brown, Green, Pink, Red, Silver, White, Yellow].

In this repo I try to train a model to recognize the color of anything. Right now the model is trained on vehicle dataset and fabric dataset. I will be adding more objects to the dataset.

Dataset

The dataset is mainly based on vehicle dataset. The rest are also being added to the dataset.

Installation:

pip install -r requirements.txt

Hyper parameters

The hyper-parameters are set in the settings.py module. You can adjust them based on your need.

Train

python train.py

Graphs

cd output/exp_4/finetune/lightning/version_0/
tensorboard --logdir .

inference.py

python inference.py --model_path output/exp_1/best.ckpt --labels_map_path output/exp_1/labels_map.pkl --img_path sample_images/sample_01.jpg

References:

  1. https://arxiv.org/pdf/1510.07391.pdf
  2. https://github.com/pooya-mohammadi/deep_utils

anything_color_recognition's People

Contributors

pooya-mohammadi 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.