Giter Club home page Giter Club logo

landmark2019-1st-and-3rd-place-solution's Introduction

Landmark2019-1st-and-3rd-Place-Solution

pipeline

The 1st Place Solution of the Google Landmark 2019 Retrieval Challenge and the 3rd Place Solution of the Recognition Challenge.

We have published two papers regarding our solution. You can check from:

Environments

You can reproduce our environments using Dockerfile provided here https://github.com/lyakaap/Landmark2019-1st-and-3rd-Place-Solution/blob/master/docker/Dockerfile

Data

Dataset statistics:

Dataset (train split) # Samples # Labels
GLD-v1 1,225,029 14,951
GLD-v2 4,132,914 203,094
GLD-v2 (clean) 1,580,470 81,313

Prepare cleaned subset

(You can skip this procedure to generate a cleaned subset. Pre-computed files are available on kaggle dataset.)

Run scripts/prepare_cleaned_subset.sh for cleaning the GLD-v2 dataset. The cleaning code requires DELF library (install instructions).

exp

Model training and inference are done in exp/ directory.

# train models by various parameter settings with 4 gpus (each training is done with 2 gpus).
python vX.py tuning -d 0,1,2,3 --n-gpu 2

# predict
python vX.py predict -m vX/epX.pth -d 0
# predict with multiple gpus
python vX.py multigpu-predict -m vX/epX.pth --scale L2 --ms -b 32 -d 0,1

Results (retrieval challenge)

Place Team Private Public
1st smlyaka (ours) 37.23 35.69
2nd imagesearch 34.75 32.25
3rd Layer 6 AI 32.18 29.85

Reference

landmark2019-1st-and-3rd-place-solution's People

Contributors

lyakaap avatar smly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

landmark2019-1st-and-3rd-place-solution's Issues

pretrained model

could you release the pretrained model on the whole clean dataset? thanks

Did you try learning the GeM pooling power?

Hi @lyakaap ,

In your paper, you mention that

"p of GeM is set to 3.0 and fixed during the training"

I am wondering if you tried learning the p parameter, and if that produced better/worse results, and what this parameter value converged to.

Thanks!

could you release the pth file: ep4_augmentation-soft_epochs-5_loss-arcface.pth?

Hi lyakaap, thank you for your hard work! In your code v2clean.py, LandmarkNet is initialized with "ep4_augmentation-soft_epochs-5_loss-arcface.pth", and then trained on GLD_v2_clean dataset. To reproduce your result, "ep4_augmentation-soft_epochs-5_loss-arcface.pth" is needed, while it is not provided. Would you please upload this file?
Thanks!

train.pickle file not found

There is no train.pickle file. I tried to use src/prepare_dataset.py for generating respective file but it's taking a lot of time.
Can anyone suggest to me how to generate it?

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.