This repo contains local PC,Colab and flask based object detect web application based on Facebook detection framework.
##Data set: https://www.kaggle.com/datasets/nguyngiabol/colorful-fashion-dataset-for-object-detection
##Colab Training Procedure:
- Download the above the data set and upload the JPG folder & Json file
- If you have ( xml annotation file use voc2coco_predefined.py convert xml to json file format.
- If your planning to create own annotate data set use labeling windows software
- Register the dataset
- Download the required model file from detectron2 zoo document page link.
- Merge the required model config file with base config file
- Download the required model checkpoint.
- Configure the few required parameters , like number of class
- Train and store the model weight into required output folder ( model_final.pth)
- Using saved model predict the new image for that select the few sample image & visualize.
- Using detectron2.utils.visualizer import ColorMode predict the object from the BW and Color images.
- Train with different model & continue the experiment.
Download the pre_Trained model: https://drive.google.com/file/d/1UxXb3Z04NCQM3EIu-APWQ15GJCllA0HZ/view?usp=sharing
####Use age of web application:
- Clone the repo
- Copy the Pre_Trained model into main folder
- Install the required package using requirements.txt
- Run python clientApp.py
- Open the URL in Browser
- Upload the sample image
- Press detect.
class_dict: {'bag': 1, 'dress': 2, 'hat': 3, 'jacket': 4, 'pants': 5, 'shirt': 6, 'shoe': 7, 'shorts': 8, 'skirt': 9, 'sunglass': 10}
Detected_classes: [8, 6, 1, 6]

