GithubHelp home page GithubHelp logo

cdiscount-kernel's Introduction

Chainer kernel for Cdiscount’s Image Classification Challenge Kaggle competition.

Requirements

  • Chainer 3.0.0

Preparation

Downloading data

Download data using kaggle-cli.

$ kg download -u <username> -p <password> -c cdiscount-image-classification-challenge

Extract the file.

$ 7z x category_names.7z

Data conversion

Convert BSON to jpeg file.

$ util/convert_BSON_to_files.py -d train -r <data directory>
$ util/convert_BSON_to_files.py -d test -r <data directory>

category_names.csv, train.bson, test.bson is necessary in .

  • File pattern to be converted
    • train files: <data directory>/train/<category>/<_id>-<index>.jpg
    • test files: <data directory>/test/<_id>-<index>.jpg

This script referred to this notebook.

Make image label list

$ python util/make_image_label_list.py

Training

$ python train.py <train data list>

Inference

$ python infer.py <test data directory>

Appendix

  • 5,270 different categories
  • image size: 180 x 180

Train Data

  • 7,069,896 products

  • train.bson: 59GB

  • 12,371,293 files

  • image files: 81GB

Test Data

  • 1,768,182 products

  • test.bson: 15GB

  • 3,095,080 files

  • image files: 21GB


files: 0.86055 iters/sec.

cdiscount-kernel's People

Contributors

xkumiyu avatar

Watchers

James Cloos 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.