GithubHelp home page GithubHelp logo

lxy1993 / camstyle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhunzhong07/camstyle

0.0 0.0 0.0 85 KB

Camera Style Adaptation for Person Re-identification CVPR 2018

Python 89.49% TeX 1.09% Shell 9.42%

camstyle's Introduction

Camera Style Adaptation for Person Re-identification

================================================================

Code for Camera Style Adaptation for Person Re-identification (CVPR 2018).

Preparation

Requirements: Python=3.6 and Pytorch>=0.3.0

  1. Install Pytorch

  2. Download dataset

  3. Download CamStyle Images

CamStyle Generation

You can generate CamStyle imgaes with CycleGAN-for-CamStyle

Training and test re-ID model

  1. IDE
# For Market-1501
python main.py -d market --logs-dir logs/market-ide
# For Duke
python main.py -d duke --logs-dir logs/duke-ide
  1. IDE + CamStyle
# For Market-1501
python main.py -d market --logs-dir logs/market-ide-camstyle --camstyle 46
# For Duke
python main.py -d duke --logs-dir logs/duke-ide--camstyle --camstyle 46
  1. IDE + CamStyle + Random Erasing[4]
# For Market-1501
python main.py -d market --logs-dir logs/market-ide-camstyle-re --camstyle 46 --re 0.5
# For Duke
python main.py -d duke --logs-dir logs/duke-ide--camstyle-re --camstyle 46 --re 0.5
  1. IDE + CamStyle + Random Erasing[4] + re-ranking[3]
# For Market-1501
python main.py -d market --logs-dir logs/market-ide-camstyle-re --camstyle 46 --re 0.5 --rerank
# For Duke
python main.py -d duke --logs-dir logs/duke-ide--camstyle-re --camstyle 46 --re 0.5 --rerank

ย 

Results

Market-1501 Duke
Methods Rank-1 mAP Rank-1 mAP
IDE 85.6 65.8 72.3 51.8
IDE+CamStyle 88.1 68.7 75.2 53.4
IDE+CamStyle+Random Erasing 89.4 71.5 78.3 57.6

References

  • [1] Our code is conducted based on open-reid

  • [2] Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks, ICCV 2017

  • [3] Re-ranking Person Re-identification with k-reciprocal Encoding. CVPR 2017.

  • [4] Random Erasing Data Augmentation. Arxiv 2017.

Citation

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

@inproceedings{zhong2018camera,
title={Camera Style Adaptation for Person Re-identification},
author={Zhong, Zhun and Zheng, Liang and Zheng, Zhedong and Li, Shaozi and Yang, Yi},
booktitle={CVPR},
year={2018}
}

Contact me

If you have any questions about this code, please do not hesitate to contact me.

Zhun Zhong

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.