Giter Club home page Giter Club logo

cvprw21_gps's Introduction

Graph-based Person Signature for Person Re-Identifications (GPS)

This repository is the implementation of GPS for Person Re-Identifications task. Our model achieved 87.8, 78.7 on mean Average Precision (mAP) and 95.2, 88.2 on Cumulative Matching Characteristic (CMC) R-1 over Market1501 and DukeMTMC-ReID datasets, respectively. For the detail, please refer to link.

This repository is based on and inspired by @Hao Luo's work. We sincerely thank for their sharing of the codes.

Summary

The proposed framework

Illustration of the proposed framework

Prerequisites

Python3

Please install dependence package by run following command:

pip install -r requirements.txt

Datasets

Market1501

  • The Market1501 original dataset should be downloaded via link.

  • The Market1501 attributes and body-part masks should be downloaded via link.

  • The downloaded files should be extracted to dataset/market1501/ directory.

This directory is constructed as follow:

|---dataset   
|---|---market1501   
|---|---|---bounding_box_test
|---|---|---bounding_box_train
|---|---|---gt_bbox
|---|---|---gt_query
|---|---|---query
|---|---|---attribute
|---|---|---Masks
|---|---|---adj.pkl
|---|---|---glove.pkl
|---|---|---image_mask_path_dict.pkl
|---|---|...

DukeMTMC-ReID

  • The DukeMTMC-ReID original dataset should be downloaded via link.

  • The DukeMTMC-ReID attributes and body-part masks should be downloaded via link.

  • The downloaded file should be extracted to dataset/dukemtmc/ directory.

This directory is constructed as follow:

|---dataset   
|---|---dukemtmc
|---|---|---bounding_box_test
|---|---|---bounding_box_train
|---|---|---query
|---|---|---attribute
|---|---|---Masks
|---|---|---adj.pkl
|---|---|---glove.pkl
|---|---|---image_mask_path_dict.pkl
|---|---|...

Thanks to Yutian Lin (github) for providing the Market1501 and DukeMTMC-ReID attributes.

Training

You should download the pretrained weight of ResNet50 model via link and put to pretrained/resnet50-pretrained/ directory.

To train GPS model on Market1501 dataset, please follow:

$ python train.py --config_file configs/market1501_gps_softmax_triplet_center.yml

To train GPS model on DukeMTMC-ReID dataset, please follow:

$ python train.py --config_file configs/dukemtmc_gps_softmax_triplet_center.yml

The training scores will be printed every epoch.

Testing

In this repo, we include the pre-trained weight of GPS_market1501 and GPS_dukemtmc models.

For GPS_market1501 pretrained model. Please download the link and move to pretrained/ directory. The trained GPS_market1501 model can be tested in Market1501 test split via:

$ python test.py --config_file configs/market1501_gps_softmax_triplet_center.yml MODEL.PRETRAIN_CHOICE "('self')" TEST.WEIGHT "('pretrained/GPS_market1501.pth')"

For GPS_dukemtmc pretrained model. Please download the link and move to pretrained. The trained GPS_dukemtmc model can be tested in DukeMTMC-ReID test split via:

$ python test.py --config_file configs/dukemtmc_gps_softmax_triplet_center.yml MODEL.PRETRAIN_CHOICE "('self')" TEST.WEIGHT "('pretrained/GPS_dukemtmc.pth')"

Citation

If you use this code as part of any published research, we'd really appreciate it if you could cite the following paper:

updating

License

MIT License

AIOZ © 2021 All rights reserved.

More information

AIOZ AI Homepage: https://ai.aioz.io

AIOZ Network: https://aioz.network

cvprw21_gps's People

Contributors

quangduytran avatar xuanbinh-nguyen96 avatar

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.