All Projects → layumi → Pedestrian_alignment

layumi / Pedestrian_alignment

Licence: mit
TCSVT2018 Pedestrian Alignment Network for Large-scale Person Re-identification

Programming Languages

matlab
3953 projects

Projects that are alternatives of or similar to Pedestrian alignment

Genomeworks
SDK for GPU accelerated genome assembly and analysis
Stars: ✭ 215 (-3.59%)
Mutual labels:  alignment, cuda
Ngmlr
NGMLR is a long-read mapper designed to align PacBio or Oxford Nanopore (standard and ultra-long) to a reference genome with a focus on reads that span structural variations
Stars: ✭ 215 (-3.59%)
Mutual labels:  alignment
Msn Point Cloud Completion
Morphing and Sampling Network for Dense Point Cloud Completion (AAAI2020)
Stars: ✭ 196 (-12.11%)
Mutual labels:  cuda
Bohrium
Automatic parallelization of Python/NumPy, C, and C++ codes on Linux and MacOSX
Stars: ✭ 209 (-6.28%)
Mutual labels:  cuda
Pine
🌲 Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
Stars: ✭ 202 (-9.42%)
Mutual labels:  cuda
Haste
Haste: a fast, simple, and open RNN library
Stars: ✭ 214 (-4.04%)
Mutual labels:  cuda
Timemory
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
Stars: ✭ 192 (-13.9%)
Mutual labels:  cuda
Relion
Image-processing software for cryo-electron microscopy
Stars: ✭ 219 (-1.79%)
Mutual labels:  cuda
Tigre
TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
Stars: ✭ 215 (-3.59%)
Mutual labels:  cuda
Hip
HIP: C++ Heterogeneous-Compute Interface for Portability
Stars: ✭ 2,609 (+1069.96%)
Mutual labels:  cuda
Amgx
Distributed multigrid linear solver library on GPU
Stars: ✭ 207 (-7.17%)
Mutual labels:  cuda
Mtcnn Accelerate Onet
MTCNN Face Detection & Alignment
Stars: ✭ 203 (-8.97%)
Mutual labels:  alignment
Cunn
Stars: ✭ 205 (-8.07%)
Mutual labels:  cuda
Simplegpuhashtable
A simple GPU hash table implemented in CUDA using lock free techniques
Stars: ✭ 198 (-11.21%)
Mutual labels:  cuda
Rmsd
Calculate Root-mean-square deviation (RMSD) of two molecules, using rotation, in xyz or pdb format
Stars: ✭ 215 (-3.59%)
Mutual labels:  alignment
Viseron
Self-hosted NVR with object detection
Stars: ✭ 192 (-13.9%)
Mutual labels:  cuda
Smartsystemmenu
SmartSystemMenu extends system menu of all windows in the system
Stars: ✭ 209 (-6.28%)
Mutual labels:  alignment
Softmax Splatting
an implementation of softmax splatting for differentiable forward warping using PyTorch
Stars: ✭ 218 (-2.24%)
Mutual labels:  cuda
Nicehashquickminer
Super simple & easy Windows 10 cryptocurrency miner made by NiceHash.
Stars: ✭ 211 (-5.38%)
Mutual labels:  cuda
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (-3.59%)
Mutual labels:  alignment

Pedestrian Alignment Network for Person Re-identification

This repo is for our IEEE TCSVT paper

[10min Intro Youtube]

(ArXiv Link: https://arxiv.org/abs/1707.00408 IEEE Link: https://ieeexplore.ieee.org/document/8481710).

The main idea is to align the pedestrian within the bboxes, and reduce the noisy factors, i.e., scale and pose variances.

Network Structure

For more details, you can see this png file. But it is low-solution now, and I may replace it recently.

Installation

1.Clone this repo.

git clone https://github.com/layumi/Pedestrian_Alignment.git
cd Pedestrian_Alignment
mkdir data

2.Download the pre-trained model. Put it into './data'.

cd data
wget http://www.vlfeat.org/matconvnet/models/imagenet-resnet-50-dag.mat

3.Compile Matconvnet (Note that I have included my Matconvnet in this repo, so you do not need to download it again. I have 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]

For training CUHK03, we follow the new evaluation protocol in the CVPR2017 paper. It conducts a multi-shot person re-ID evaluation and only needs to run one time.

Train

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

  2. uncomment https://github.com/layumi/Pedestrian_Alignment/blob/master/resnet52_market.m#L23

Run train_id_net_res_market_new.m to pretrain the base branch.

  1. comment https://github.com/layumi/Pedestrian_Alignment/blob/master/resnet52_market.m#L23

Run train_id_net_res_market_align.m to finetune the whole net.

Test

  1. Run test/test_gallery_stn_base.m and test/test_gallery_stn_align.m to extract the image features from base branch and alignment brach. Note that you need to change the dir path in the code. They will store in a .mat file. Then you can use it to do the evaluation.

  2. Evaluate feature on the Market-1501. Run evaluation/zzd_evaluation_res_faster.m. You can get a Single-query Result around the following result.

Methods               [email protected] mAP
Ours 82.81% 63.35%

You may find our trained model at GoogleDrive

Visualize Results

We conduct an extra interesting experiment: When zooming in the input image (adding scale variance), how does our alignment network react?

We can observe a robust transform on the output image (focusing on the human body and keeping the scale).

The left image is the input; The right image is the output of our network.

Citation

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

@article{zheng2017pedestrian,
  title={Pedestrian Alignment Network for Large-scale Person Re-identification},
  author={Zheng, Zhedong and Zheng, Liang and Yang, Yi},
  doi={10.1109/TCSVT.2018.2873599},
  journal={IEEE Transactions on Circuits and Systems for Video Technology},
  year={2018}
}

Acknowledge

Thanks for the suggestions from Qiule Sun.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].