Git Product home page Git Product logo

adversarialbinarycoding4reid's Introduction

Adversarial Binary Coding for Efficient ReID

This project contains the codes for the paper Adversarial Binary Coding for Efficient Person Re-identification. We adopt adversarial learning to obtain compact discriminative binary representation for pedestrians and use them to measure similarity in an unified deep learning framework. The method is tested on CUHK03, Market-1501, and DukeMTMC-reID datasets.

Requirements

The codes are tested in the Anaconda 4.4.0 environment containing following packages:

  • Python 3.6
  • PyTorch 0.3.0 + torchvision 0.12

Usage

  • Train and test.
python main.py --dataset market1501 --train --test --trial 1 --data_dir /root/to/data
  • draw.py for drawing loss curves.

By default, the '--data_dir' directs the 'data' folder in the root of the codes. Users can put the data folders into the 'data' folder. For convenience, we have put the train/test splitting file in pickle-readable format into the cuhk03 data folder.

Exemplar Loss Curves on Market-1501

Citation

@article{liu2018adversarial,
title={Adversarial Binary Coding for Efficient Person Re-identification},
author={Liu, Zheng and Qin, Jie and Li, Annan and Wang, Yunhong and Van Gool, Luc},
journal={arXiv preprint arXiv:1803.10914},
year={2018}
}

adversarialbinarycoding4reid's People

Contributors

dongb5 avatar

Stargazers

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

Watchers

 avatar  avatar

adversarialbinarycoding4reid's Issues

The triplet loss curve on Market1501 was strange

I set the parameter to the values which were mentioned in your paper. And I ran your code to train the model on Market1501 and I got a strange triplet loss curve(iteration = 16000, hash_bit = 2048).
image
There is a significant oscillation on the curve. Obiviously, it is quite different from the your curves. I didn't change the code except the parameter. And I am sure that the parameters were as same as yours.
The loss of discriminator and the loss of generator is just like the curves you posted on the github.
image

I can't figure out what is wrong. Could you please give me some advice.

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.