GithubHelp home page GithubHelp logo

diceroll / kmnist Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 20.44 MB

ProbSpace「くずし字」識別チャレンジ 1位解法

Home Page: https://prob.space/competitions/kuzushiji-mnist

License: MIT License

Python 98.95% Shell 1.05%

kmnist's Introduction

ProbSpace 「くずし字」識別チャレンジ

https://prob.space/competitions/kuzushiji-mnist

使い方

必要なライブラリ

  • numpy
  • pandas
  • Pillow
  • tqdm
  • chainer
  • cupy
  • chainercv
  • albumentations

学習

はじめに、outputという名前のディレクトリを作成してください

  • 基本的な学習コマンド
    python train.py -g GPU番号 -dn 出力ディレクトリ名
    ※その他オプションはpython train.py -h

  • 5-fold CVの例
    ./run.sh

テスト

  • 学習済みモデルを使用する場合

    1. こちらからzipファイル(1.8GB)をダウンロード
    2. zipファイルを展開
    3. python test.py -g GPU番号
  • 自分で学習したモデルを使用する場合

    1. test.py内の以下の部分を変更してください
    models = [
            ('SEResNeXt101', None,
            ['output/20190611_2314/best_model.npz',
             'output/20190612_0039/best_model.npz',
             'output/20190612_1230/best_model.npz',
             'output/20190612_1537/best_model.npz',
             'output/20190612_2333/best_model.npz']),
            ('SEResNeXt101', resize,
            ['output/20190613_1544/best_model.npz',
             'output/20190613_1609/best_model.npz',
             'output/20190614_0537/best_model.npz',
             'output/20190614_0852/best_model.npz',
             'output/20190614_1808/best_model.npz']),
        ]
    

    models = [(モデル名, 前処理, モデルのパスのリスト)]

    1. python test.py -g GPU番号

kmnist's People

Contributors

diceroll avatar

Stargazers

Mark Hsieh avatar Tatsuya Ona avatar Hironobu Kawaguchi avatar KotaYuhara avatar

Watchers

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