Coder Social home page Coder Social logo

mishakeyvalue / google-retrieval-challenge-2019-fastai-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ducha-aiki/google-retrieval-challenge-2019-fastai-starter

0.0 1.0 0.0 2.81 MB

fast.ai starter kit for Google Landmark Retrieval 2019 challenge

Python 0.41% Jupyter Notebook 99.59%

google-retrieval-challenge-2019-fastai-starter's Introduction

Google Landmark Retrieval 2019 Competition fast.ai Starter Pack

The code here is all you need to do the first submission to the Google Landmark Retrieval 2019 Competition. It is based on FastAi library release 1.0.47 and borrows helpser code from great cnnimageretrieval-pytorch library. The latter gives much better results than code in the repo, but not ready-to-make submission and takes 3 days to converge compared to 45 min here.

Making first submission

  1. Install the fastai library, specifically version 1.0.47.

  2. Install the faiss library. conda install faiss-gpu cudatoolkit=9.0 -c pytorch-y

  3. Clone this repository.

  4. Start the download process for the data. It would take a lot, so in mean time you can run the code.

  5. Because the code here does not depend on competition data for training, only for submission.

Notebooks

  1. download-and-create-microtrain - download all the aux data for training and validation
  2. validation-no-training - playing with pretrained networks and setting up validation procedure
  3. training-validate-bad - training DenseNet121 on created micro-train in 45 min and playing with post-processing. It works as described, but just because of pure luck: lots of different "subclusters" == labels are depicting the same landmark. So, do not use it for training of all 19k subclusters
  4. training-validate-good-full - Instead, use "clusters" as a labels, it gives much better results.
  5. submission-trained - creating a first submission. Warning, this could take a lot (~4-12 hours) because of the dataset size

google-retrieval-challenge-2019-fastai-starter's People

Contributors

ducha-aiki avatar

Watchers

 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.