Code Monkey home page Code Monkey logo

pgan's Introduction

Python 3 Pytorch 0.3 #PGAN ReID

Prerequisites

  • Python 3
  • Pytorch (We run the code under version 0.3.1, maybe lower versions also work.)

Getting Started

Installation

  • Install dependencies (e.g., visdom and dominate). You can install all the dependencies by:
pip install scipy, pillow, torchvision, sklearn, h5py, dominate, visdom

Datasets

  • Create directories for datasets:
mkdir datasets
cd datasets/
  • Download datasets through the links below, and unzip.
    Market1501:[Baidu Pan]link

Model

  • Create directories for datasets:
mkdir bestmodel
cd bestmodel
  • Download trained model through the links below. it include encoder pre-model and the whole model.
    encoder pre-trained model:[Baidu Pan]link
    GAN model:[Baidu Pan]link

Run code

defalut: +reranking, if you want to remove re_ranking, you need to modify ./reid/evaluators.py

sh train.sh

Citation

If you use this method or this code in your research, please cite as:

@article{zhang2020pgan,
  title={PGAN: Part-based nondirect coupling embedded GAN for person reidentification},
  author={Zhang, Yue and Jin, Yi and Chen, Jianqiang and Kan, Shichao and Cen, Yigang and Cao, Qi}, 
  journal={IEEE MultiMedia}, 
  volume={27},
  number={3},
  pages={23--33}, 
  year={2020},
  publisher={IEEE}
}

Acknowledgements

Our code is inspired by [FDGAN] (https://github.com/yxgeee/FD-GAN), [PCB] (https://github.com/syfafterzy/PCB_RPP_for_reIDand) and open-reid.

pgan's People

Contributors

ivyyz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

daiguangzhao

pgan's Issues

the code of papaer???

hi~
this code is the paper ''Part-Guided Attention Learning for Vehicle Re-Id'' ?
请问是这篇文章的代码吗

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.