Git Product home page Git Product logo

lxc86739795 / vehicle_reid_by_parsing Goto Github PK

View Code? Open in Web Editor NEW
38.0 2.0 5.0 686 KB

This repo gives the code for the paper "Xinchen Liu, Wu Liu, Jinkai Zheng, Chenggang Yan, Tao Mei: Beyond the Parts: Learning Multi-view Cross-part Correlation for Vehicle Re-identification. ACM MM 2020".

License: Apache License 2.0

Shell 0.29% Python 99.68% Makefile 0.02%
vehicle reid parsing pytorch vehicle-reid veri776 veri-wild aicity

vehicle_reid_by_parsing's Introduction

vehicle_reid_by_parsing

This repo gives the code for the paper "Xinchen Liu, Wu Liu, Jinkai Zheng, Chenggang Yan, Tao Mei: Beyond the Parts: Learning Multi-view Cross-part Correlation for Vehicle Re-identification. ACM MM 2020". This code is based on reid strong baseline.

Requirements

  • Linux or macOS with python ≥ 3.6
  • PyTorch ≥ 1.0
  • torchvision that matches the Pytorch installation. You can install them together at pytorch.org to make sure of this.
  • yacs
  • Cython (optional to compile evaluation code)
  • tensorboard (needed for visualization): pip install tensorboard

Data Preparation

To train a vehicle reid model with parsing, you need the original image datasets like VeRi and the parsing masks of all images. For vehicle parsing models pretrained on the MVP dataset based on PSPNet/DeepLabV3/HRNet, please refer to this repo.

Training

You can run the examplar training script in .sh files.

Main Code

The main code for GCN can be found in

root
  engine
    trainer_selfgcn.py    # training pipline
  modeling
    baseline_selfgcn.py   # definition of the model
  tools
    train_selfgcn.py      # training preparation

The code for data io and sampler also be modified for the parsing based reid method.

License

PCRNet is released under the Apache 2.0 license.

Reference

@inproceedings{mm/LiuLZY020,
  author    = {Xinchen Liu and
               Wu Liu and
               Jinkai Zheng and
               Chenggang Yan and
               Tao Mei},
  title     = {Beyond the Parts: Learning Multi-view Cross-part Correlation for Vehicle
               Re-identification},
  booktitle = {ACM MM},
  pages     = {907--915},
  year      = {2020}
}

vehicle_reid_by_parsing's People

Contributors

lxc86739795 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vehicle_reid_by_parsing's Issues

About the metric shown in the paper

Hello, i am very interested in your work and consider it as meaningful one.
But when i reproduce the work on veri776, my metric is not as well as yours.
I used HRNet and keep the same experiment setting.
Can u give me some advice, thanks XD

PE(part erasing augmentation)

您好,在engine/trainer.py中我发现from solver.build import make_lr_scheduler, make_optimizer。我从这个reid-strong-baseline找到了solver,但是它仅仅有make_optimizer,我是一个新手,很抱歉打扰你,您能告诉我从哪里获得make_lr_scheduler吗?
另一个问题就是我阅读了您的论文,这个parse后的数据集我也准备好了,我想问PE(part erasing augmentation)的实现在哪里,看起来似乎只有RE,如果我想仅仅训练Global Branch + PE,我仅仅需要使用Veri_mask或者vehicleid_mask数据集吗,在哪一步进行了PE? 期待您的回复,很抱歉打扰你,谢谢!!

PE (part erasing augmentation)

Hi, it’s me again. Where can I find the PE( part erasing augmentation) mentioned in the paper? It seems that there is only RE

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.