• Stars
    star
    317
  • Rank 132,216 (Top 3 %)
  • Language Cuda
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ICCV2017 Unlabeled Samples Generated by GAN Improve the Person Re-identification Baseline in vitro

Person-reID_GAN

This repository contains the code for our paper Unlabeled Samples Generated by GAN Improve the Person Re-identification Baseline in vitro.

News: We provide one new end-to-end framework for data generation and representation learning. You are welcomed to check out it at https://github.com/NVlabs/DG-Net

1. Unsupervised Learning (GAN)

The first stage is to generate fake images by DCGAN. We used the code provided in https://github.com/carpedm20/DCGAN-tensorflow and modify some hyper-parameters at https://github.com/layumi/DCGAN-tensorflow. You can directly use my forked code.

For more reference, you can find our modified training code and generating code in ./DCGAN. We wrote a detailed README. If you still has some question, feel free to contact me ([email protected]).

2. Semi-supervised Learning

The second stage is to combine the original data and generated data to train the network. This repos includes the baseline code and the three different methods in the paper.

Models ย  ย  ย  ย  ย  ย  ย  Reference
resnet52_market.m ย  ย  ย  ResNet50 baseline
resnet52_market_K_1.m One extra class for generated images
resnet52_market_lsro.m The proposed method, uniform probability
resnet52_market_pseudo.m Give the most likely label for generated images

Compile Matconvnet

(Note that I have included my Matconvnet in this repo, so you do not need to download it again. I has changed some codes comparing with the original version. For example, one of the difference is in /matlab/+dagnn/@DagNN/initParams.m. If one layer has params, I will not initialize it again, especially for pretrained model.)

You just need to uncomment and modify some lines in gpu_compile.m and run it in Matlab. Try it~

(The code does not support cudnn 6.0. You may just turn off the Enablecudnn or try cudnn5.1)

If you fail in compilation, you may refer to http://www.vlfeat.org/matconvnet/install/

Dataset

Download Market1501 Dataset. [Google] [Baidu] We take Market1501 as an example in this repos and you can easily extend it to other datasets.

ImageNet Pretrained model

  1. Make a dir called data by typing mkdir ./data.

  2. Download ResNet-50 model pretrained on Imagenet. Put it in the data dir.

Train the Baseline code

  1. Add your dataset path into prepare_data.m and run it. Make sure the code outputs the right image path.

  2. Run train_id_net_res_market_new.m.

Train with generated data

  1. Add your generated data path into prepare_data_gan.m and run it. It will add generated image path into the original image database.

  2. Run train_id_net_res_market_K_1.m for training extra-class method.

Or run train_id_net_res_market_lsro.m for training the proposed method.

Or run train_id_net_res_market_pseudo.m for training the pseudo-label method.

(What's new: I also include train_id_net_res_2stream_gan.m for training the code with the method proposed in my another paper. I do not import all files, and you may find the missing code in https://github.com/layumi/2016_person_re-ID. )

Test

  1. Run test/test_gallery_query_crazy.m to extract the features of images in the gallery and query set. They will store in a .mat file. Then you can use it to do evaluation.
  2. Evaluate feature on the Market-1501. Run evaluation/zzd_evaluation_res_faster.m.

Citation

Please cite this paper in your publications if it helps your research:

@inproceedings{zheng2017unlabeled,
  title={Unlabeled Samples Generated by GAN Improve the Person Re-identification Baseline in vitro},
  author={Zheng, Zhedong and Zheng, Liang and Yang, Yi},
  booktitle={Proceedings of the IEEE International Conference on Computer Vision},
  year={2017}
}

Related Repos

  1. 2stream Person re-ID
  2. Pedestrian Alignment Network
  3. MpRL Person re-ID

More Repositories

1

Person_reID_baseline_pytorch

โ›น๏ธ Pytorch ReID: A tiny, friendly, strong pytorch implement of person re-id / vehicle re-id baseline. Tutorial ๐Ÿ‘‰https://github.com/layumi/Person_reID_baseline_pytorch/tree/master/tutorial
Python
4,058
star
2

Vehicle_reID-Collection

๐Ÿš— the collection of vehicle re-ID papers, datasets. ๐Ÿš—
453
star
3

University1652-Baseline

ACM Multimedia2020 University-1652: A Multi-view Multi-source Benchmark for Drone-based Geo-localization ๐Ÿš annotates 1652 buildings in 72 universities around the world.
Python
452
star
4

AICIty-reID-2020

๐Ÿš— The 1st Place Submission to AICity Challenge 2020 re-id track (Baidu-UTS submission)
Python
449
star
5

Seg-Uncertainty

IJCAI2020 & IJCV2021 ๐ŸŒ‡ Unsupervised Scene Adaptation with Memory Regularization in vivo
Python
386
star
6

Image-Text-Embedding

TOMM2020 Dual-Path Convolutional Image-Text Embedding ๐Ÿพ https://arxiv.org/abs/1711.05535
MATLAB
280
star
7

2016_person_re-ID

TOMM2017 A Discriminatively Learned CNN Embedding for Person Re-identification
C
265
star
8

person-reid-3d

TNNLS'22 ๐Ÿ—ฝ Parameter-Efficient Person Re-identification in the 3D Space ๐Ÿ—ฝ
Python
262
star
9

Pedestrian_Alignment

TCSVT2018 Pedestrian Alignment Network for Large-scale Person Re-identification
Cuda
237
star
10

Person-reID-triplet-loss

Person re-ID baseline with triplet loss
Python
189
star
11

2015_Face_Detection

CVPR2015 Cascade CNNs for Face Detection
HTML
136
star
12

Person-reID-verification

๐Ÿจ (pytorch version) TOMM2017 A Discriminatively Learned CNN Embedding for Person Re-identification ๐Ÿจ
Python
100
star
13

2016_super_resolution

ICCV2015 Image Super-Resolution Using Deep Convolutional Networks
Cuda
86
star
14

Awesome-Fools

๐Ÿ’€ A collection of methods to fool the deep neural network ๐Ÿ’€
76
star
15

3D-Magic-Mirror

๐Ÿ‘—3D Magic Mirror: Clothing Reconstruction from a Single Image via a Causal Perspective๐Ÿ‘— Single-View 3D Reconstruction
Python
72
star
16

U_turn

IJCV22 ๐Ÿ™ˆ Attack your retrieval model via Query! They are not robust as you expected! ๐Ÿ™‰
Python
47
star
17

AdaBoost_Seg

TIP2022 Adaptive Boosting (AdaBoost) for Domain Adaptation ? ๐Ÿคทโ€โ™€๏ธ Why not ! ๐Ÿ™†โ€โ™€๏ธ
Python
45
star
18

visualize_matconvnet

A simple code to visualize net for matconvnet.
MATLAB
35
star
19

2016_GAN_Matlab

Generative Adversarial Nets for Matlab
HTML
35
star
20

2016_Artist_Style

Using CNN to create 'famous painting' with Matlab code
HTML
19
star
21

DukeMTMC-reID_baseline

DukeMTMC-reID_baseline (Matlab)
Cuda
18
star
22

UTS-Person-reID-Practical

UTS Person-reID Practical By Zhedong Zheng
18
star
23

HQ-Market

Market-1501 dataset with super-resolution quality
Python
18
star
24

Image-Retrieval-by-Finetuning-CNN

Code for project
Python
17
star
25

Awesome-Text2Motion-Generation

Awesome-Text2Motion-Generation
16
star
26

ACMMM2023Workshop

UAVM @ ACM MM2023 Workshop on UAVs in Multimedia: Capturing the World from a New Perspective
16
star
27

NLP-AICity2021

The 1st Place Submission to AICity Track5 - Natural Language-based Vehicle Retrieval.
Python
15
star
28

UAVM2023

ACM MM Workshop on UAVs in Multimedia: Capturing the World from a New Perspective (UAVM 2023)
12
star
29

Person_reID_baseline_matconvnet

Matconvnet implement of Person re-identification baseline. We arrived Rank@1=87.74% mAP=69.46% only with softmax loss.
Cuda
12
star
30

matlab_email_demo

a easy solution for baby sitting program!!! (MATLAB)
M
11
star
31

ICME2022SS

ICME2022 Special Session โ€œBeyond Accuracy: Responsible, Responsive, and Robust Multimedia Retrieval โ€
11
star
32

To-Academic-Newcomers

10
star
33

DCGAN-pytorch

Pytorch implement of DCGAN and LSGAN
Python
8
star
34

University1652-triplet-loss

triplet loss with hard negative / soft margin for the University-1652 dataset.
Python
8
star
35

2016_Class_Activation_Mapping

semantic segmentation in MATLAB
HTML
7
star
36

Robust-GPUs

Python
7
star
37

layumi.github.io

UTS Group Seminar http://www.zdzheng.xyz
HTML
6
star
38

market1501_body_point

MATLAB
6
star
39

Cifar10-Adaboost

Python
6
star
40

2016_Center_Loss

Matlab_ECCV16_Center_Loss
HTML
4
star
41

google_scholar_scrapy

extract data from google scholar
Python
4
star
42

Oxford-Paris-Attack

๐Ÿ™ˆ We added our attacking method ODFA (https://arxiv.org/abs/1809.02681). The performance drops from 88.2% to 2.24% on Oxford. ๐Ÿ™‰
Python
4
star
43

visualize_face_detection_net

MATLAB
3
star
44

SOTA-semi

3
star
45

Matlab_TripletLoss

Matlab_TripletLoss
MATLAB
3
star
46

Batch-Normal-For-Caffe

Extend batch normalization layer for caffe
C++
3
star
47

pytorch-mnist

Draw mnist
Python
3
star
48

Awesome-Sign-Language

awesome list for sign language
3
star
49

2015_speech

word audio recognition
HTML
2
star
50

layumi

2
star
51

pkl2mat

a tool for transfer pkl file to mat file
Python
2
star
52

ACMMM2024Workshop-UAV

2
star
53

ComputerVisionAwardPapers

1
star
54

2016_FlowNet

Cuda
1
star
55

Zhedong-Zheng-blog

zhedong zheng's blog
CSS
1
star
56

2016_Video_Stabilization

A project @Fudan for 2016 Digital Image Processing
C
1
star
57

empty

1
star
58

Workshop-Proposal-DDL

1
star
59

WordNet_Matlab

a simple api for matlab to search semantic synonym
MATLAB
1
star
60

MORE2024

Multimedia Object Re-identification Workshop (MORE) @ ICMR2024
1
star