Skip to content
/ PN_GAN Public
forked from naiq/PN_GAN

Pose-Normalized Image Generation for Person Re-identification

Notifications You must be signed in to change notification settings

yang502/PN_GAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

PN_GAN

In current version, we release the codes of PN-GAN and re-id testing . The other parts of our project will be released later.

How to run it:

GAN:
  (1) run 'GAN/train.py' to train the GAN model. The model and log file will be saved in folder 'GAN/model' and 'GAN/log' respectively. The validate images will be synthesized in 'GAN/images';

  or (2) run 'GAN/evaluate.py' to generate images for specific testing image. The output will be saved in folder 'GAN/test'

Person re-id:
  (1) run 'viper_feature.py' to extract features of probe and gallery, the features will be saved in folder '../feature/';

  (2) run 'CMC_viper.py' to compute cmc scores with python code, it will output three kinds of results:
       - avg: 8 pose features are fused by average operation
       - max: 8 pose features are fused by maximum operation
       - concat: 8 pose features are fused by concatenation operation

  (3) (optional) run 'Market-1501_baseline/zzd_evaluation_res_faster.m' to compute cmc scores with matlab code. You can modify the code in line 93 to obtain different result of each metric learning (e.g. 'dist_avg.mat', 'dist_max.mat', or 'dist_concat.mat'). It should get the same results with step 2.

#Acknowledgment:

  The testing codes are modified from Tong Xiao's code, and also refer to Zhedong Zheng's codes.

About

Pose-Normalized Image Generation for Person Re-identification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 64.7%
  • C 18.8%
  • Python 14.1%
  • C++ 2.0%
  • Other 0.4%