GithubHelp home page GithubHelp logo

amrahsmaytas / furniture-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhby99/furniture-classification

0.0 0.0 0.0 54.26 MB

iMaterialist Challenge (Furniture) at FGVC5, Kaggle Competition

Jupyter Notebook 62.39% Python 37.61%

furniture-classification's Introduction

Furniture-Classification

iMaterialist Challenge (Furniture) at FGVC5, Kaggle Competition

Data Downloader

We have download.py for training data, downloadd_valid.py for validation data and download_test.py for testing data, an example running is showed below.

python download.py

Data Preprocess

  1. For pytorch model, use dataset_gen.py for making 128 directories for training set and validation set and putting the valid images into these folders according to their labels. preprocess.py is used to putting all valid image files into the newly created folder.
  2. For tensorflow model, run preprocess_main.py to preprocess the images and store them in npy file. Also, download AlexNet weights, and save the bvlc-alexnet.npy

Training

  1. For pytorch model
python transfer_main.py

The weights are stored in best_weight.pth. 2. For tensorflow model, open pipeline.ipynb for training.

Testing

python predict.py

to load the weight and make prediction on testing set, the result of prediction will be stored in test_prediction.pth.

Submission File for Kaggle

python gen_csv.py

to map index of training with testing and generating csv file for submission, in submission.csv.

furniture-classification's People

Contributors

liyuanlucasliu avatar mtian6 avatar zhby99 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.