Git Product home page Git Product logo

inat_comp_2018's Introduction

iNaturalist Competition 2018 Training Code

This code finetunes an Inception V3 model (pretrained on ImageNet) on the iNaturalist 2018 competition dataset.

Training

The network was trained on Ubuntu 16.04 using PyTorch 0.3.0. Each training epoch took about 1.5 hours using a GTX Titan X.
The links for the raw data are available here. We also provide a trained model that can be downloaded from here. Every epoch the code will save a checkpoint and the current best model according to validation accuracy.
Training for 75 epochs results in a top one accuracy of 60.20% and top three of 77.91% on the validation set.

Ideas for Improvement

  • Train/test on higher resolution images.
  • Make use of the taxonomy at training time (already included in data loader).
  • Address long tail distribution.

Submission File

By setting the following flags it's possible to generate a submission file for the competition.

    evaluate = True
    save_preds = True
    resume = 'model_path/iNat_2018_InceptionV3.pth.tar'  # path to trained model
    val_file = 'ann_path/test2018.json'                  # path to test file
    data_root = 'data_path/inat2018/images/'             # path to test images
    op_file_name = 'inat2018_test_preds.csv'             # submission filename

inat_comp_2018's People

Contributors

macaodha avatar

Watchers

Arunkumar Venkataramanan 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.