Giter Site home page Giter Site logo

classifier_pytorch's Introduction

Pytorch Classifier - male / female, long sleeves. short sleeves - Experiments

predictions-2

predictions-1

classifier_pytorch

pytorch classifier - male/female gender . Long sleeves/short sleeves clothing

1) Code for downloading images from Myntra..

Explanation - I used chromedriver which loads page 1 to page 10 at a time. Each page has 50 images. I downloaded 500 images for 4 categories [Men Long sleeves, Men short sleeves, women long sleeves, women short sleeves]

Challenge faced - usually jumping to the end of a document was not loading all images on pages.Myntra uses lazy loading. I used code to scroll part by part on screen so that all images get a chance to load.

2) classifier_model_pytorch (poor 25-35% accuracy)

Explanation - for each category I have 500 images. I used 80% as training images (400) and 100 images as tst dataset. So for 4 categories in all 2000 = 1600 (train images) + 400 (test images).

Challenge Faced - For inference testing. I took an image from amazon (unseen image to model) Accuracy is very poor. Inference is wrong. Prediction Probabilities for all 4 categories were ~25%. Not good.

3) classifier_model_transfer_learning (85% accuracy)

Explanation - I used Transfer learning by using pretrained model efficientnet_b0. Base model was put in freeze. Model was fine tuned on 2000 images (1600 training + 400 test)

Result - For inference testing. I took an image from amazon (unseen image to model). Accuracy , Prediction Probabilities on all 4 categories is good.

classifier_pytorch's People

Contributors

mekhiya avatar

Watchers

 avatar  avatar

classifier_pytorch's Issues

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.