Classify objects using DL-based image classification model rexnet_150 (paper), test the model performance on unseen images during training, and perform model analysis using GradCAM.
conda create -n <ENV_NAME> python = 3.9
conda activate <ENV_NAME>
pip install -r requirements.txt
python train.py --batch_size = 64 --lr = 3e-4 --model_name = "model_name_from_timm_library"
python pl_train.py --batch_size = 64 --lr = 3e-4 --model_name = "model_name_from_timm_library"
After completing train process choose a model checkpoint with the best accuracy and do inference using random images from the Internet by running the following script. There are several sample images in sample_ims folder of this repo.
streamlit run demo.py --checkpoint_path "path/to/checkpoint"
python gradio_demo.py --checkpoint_path "path/to/checkpoint"