Giter VIP home page Giter VIP logo

beyond-binary-supervision-cvpr19's Introduction

Deep Metric Learning Beyond Binary Supervision

outline

Official pytorch Implementation of [Deep Metric Learning Beyond Binary Supervision](https://arxiv.org/abs/1904.09626), CVPR 2019

Citing this work

If you find this work useful in your research, please consider citing:

@inproceedings{kim2019deep,
  title={Deep Metric Learning Beyond Binary Supervision},
  author={Kim, Sungyeon and Seo, Minkyo and Laptev, Ivan and Cho, Minsu and Kwak, Suha},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={2288--2297},
  year={2019}
}

Dependency

  • Python >=3.6
  • Pytorch >=0.4.1
  • tqdm (pip install tqdm)
  • scipy
  • tensorboardX

Prerequisites

  1. Download pretrained human pose dataset with labels from here
  2. Extract the zip file into ./data/

Human Pose Retrieval Quick Start

python main.py --help

# Train a embedding network of resnet34 (d=128)
# using logratio loss with **dense triplet sampling**.

python main.py --loss logratio \
               --model resnet34 \ 
               --result-name dense_Logratio \
               --optimizer sgd \
               --lr 0.01 \ 
               --lr-decay 1e-4 \ 
               --batch-size 150 \
               --num-NN 5 \
               --embedding-size 128 \
               --sampling dense \
               
# Train a embedding network of resnet34 (d=128)
# using triplet loss (margin=0.03) with **dense triplet sampling**.

python main.py --loss triplet \
               --is-norm True \
               --model resnet34 \ 
               --result-name dense_Triplet \
               --optimizer sgd \
               --lr 0.01 \ 
               --lr-decay 1e-4 \ 
               --batch-size 150 \
               --num-NN 5 \
               --embedding-size 128 \
               --sampling dense \               
               
# Train a embedding network of resnet34 (d=128)
# using triplet loss (margin=0.2) with **binary triplet sampling**.

python main.py --loss triplet \
               --is-norm True \
               --model resnet34 \ 
               --result-name naive_Triplet \
               --optimizer sgd \
               --lr 0.01 \ 
               --lr-decay 1e-4 \ 
               --batch-size 150 \
               --embedding-size 128 \
               --sampling naive \     

beyond-binary-supervision-cvpr19's People

Contributors

tjddus9597 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.