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
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.
The dataset is mainly based on vehicle dataset. The rest are also being added to the dataset.
pip install -r requirements.txt
The hyper-parameters are set in the settings.py
module. You can adjust them based on your need.
python train.py
cd output/exp_4/finetune/lightning/version_0/
tensorboard --logdir .
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