Giter Site home page Giter Site logo

navinbondade / maintaining-users-clothing-wardrobe-with-yolov5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 28.02 MB

Here I have created a deep-learning based system that uses YoloV5 for identifying the clothing item and put them into the online wardrobe if that clothing item is not present.

Jupyter Notebook 100.00%

maintaining-users-clothing-wardrobe-with-yolov5's Introduction

Maintaining Users Clothing Wardrobe With YoloV5

In this project, I have created a deep-learning based system that can understand which clothing items is wear by the users and, based on that it makes the decision whether the clothing item is already present in the online wardrobe or not and if not, it will automatically get added into the wardrobe by the system.

Libraries Used

  • Pytorch
  • YoloV5
  • Numpy
  • Pandas
  • Matplotlib
  • Sklearn
  • Python Imaging Library
  • OpenCV
  • skimage

Dataset

For clothing item identification and localization, I have created a custom dataset by myself. The clothing item images have been downloaded from Kaggle's InShopeClothes dataset and it gets annotated with a bounding box with the open-source tool called YoloLabel. A total of 656 images with their respective label in the dataset, out of which 586 images with their label are in the training section and the remaining 66 are in the validation section. The dataset can be downloaded from here: https://bit.ly/3eEt90Y

Object Detection

For object detection, I have used here YoloV5 mainly for its smaller size, faster computation, and state-of-the-art accuracy. The model has to get trained over 586 images for 50 epochs. The model took 21 minutes to train completely, which means it takes 41 seconds per epoch to complete its task. The model was able to perform object detection with the following accuracy.

Object Detection Result On Validation Dataset

Input:

Output:

Image Similarity

For making the system understand whether the images are similar or dissimilar, here I have used Structural Similarity Index (SSIM) for scoring the similarity between the two images. The SSIM attempts to model the perceived change in the structural information of the image and based on that generates a score.

Online Wardrobe Management

For the management of online wardrobe and putting in the newly detected clothing item, I have written a logical code that compares the detected clothing item to preexisted clothing item within the wardrobe and generates an SSIM score, if the score is above a certain threshold the item will get added to the wardrobe, else not.

Current Wardrobe:

User Clothing Item:

User Clothing Item Detected:

Updated Wardrobe:

Conclusion

Here in this project, I have created a system that uses YoloV5 for identifying the clothing item and put them into the online wardrobe if that clothing item is not present.

References

https://www.kaggle.com/rvnrvn1/inshopclothes
https://github.com/developer0hye/Yolo_Label
https://github.com/ultralytics/yolov5
https://medium.com/srm-mic/all-about-structural-similarity-index-ssim-theory-code-in-pytorch-6551b455541e

maintaining-users-clothing-wardrobe-with-yolov5's People

Contributors

navinbondade avatar

Watchers

 avatar  avatar  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.