Giter Site home page Giter Site logo

xlearning-scu / 2022-cvpr-dart Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 7.0 565 KB

PyTorch implementation for Learning with Twin Noisy Labels for Visible-Infrared Person Re-Identification (CVPR 2022).

Python 100.00%
person-reid cross-modality-re-identification learning-with-noisy-labels

2022-cvpr-dart's Introduction

PyTorch implementation for Learning with Twin Noisy Labels for Visible-Infrared Person Re-Identification (CVPR 2022).

Introduction

DART framework

Requirements

  • Python 3.7
  • PyTorch ~1.7.1
  • numpy
  • scikit-learn

Datasets

SYSU-MM01 and RegDB

We follow ADP to obtain datasets.

Training and Evaluation

Training

Modify the data_path and specify the noise_ratio to train the model.

# SYSU-MM01: noise_ratio = {0, 0.2, 0.5}
python run.py --gpu 0 --dataset sysu --data-path data_path --noise-rate 0.2 --savename sysu_dart_nr20 

# RegDB: noise_ratio = {0, 0.2, 0.5}, trial = 1-10
python run.py --gpu 0 --dataset regdb --data-path data_path --noise-rate 0.2 --savename regdb_dart_nr20 --trial 1

Evaluation

Modify the data_path and model_path to evaluate the trained model.

# SYSU-MM01: mode = {all, indoor}
python test.py --gpu 0 --dataset sysu --data-path data-path --model_path model_path --resume-net1 'sysu_dart_nr20_net1.t' --resume-net2 'sysu_dart_nr20_net2.t' --mode all

# RegDB: --tvsearch or not (whether thermal to visible search)
python test.py --gpu 0 --dataset regdb --data-path data-path --model_path model_path --resume-net1 'regdb_dart_nr20_trial{}_net1.t' --resume-net2 'regdb_dart_nr20_trial{}_net2.t'

Citation

If DART is useful for your research, please cite the following paper:

@InProceedings{Yang_2022_CVPR,
    author={Yang, Mouxing and Huang, Zhenyu and Hu, Peng and Li, Taihao and Lv, Jiancheng and Peng, Xi},
    title={Learning With Twin Noisy Labels for Visible-Infrared Person Re-Identification},
    booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month={June},
    year={2022},
    pages={14308-14317}
}

License

Apache License 2.0

Acknowledgements

The code is based on ADP licensed under Apache 2.0.

2022-cvpr-dart's People

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

Watchers

 avatar  avatar

2022-cvpr-dart's Issues

出了一个bug,请问是什么原因。

==> Preparing Data Loader...
Traceback (most recent call last):
File "/home/2022-CVPR-DART/run.py", line 504, in
prob_A_V, prob_A_I = eval_train(net1, eval_loader, 'A')
File "/home/2022-CVPR-DART/run.py", line 313, in eval_train
losses_V_aug2[index_V[n1 + 32]] = loss1[n1 + 32]
IndexError: index 32 is out of bounds for axis 0 with size 32

Acquisition of the noise id

Hello, I have some doubts about the part of the code that differentiates TN, and whether the use of rgb_noiseIdx for differentiation is causing data leakage. By definition, the model should not be able to directly obtain which noise ids are included. I'm not sure if I'm wrong about this variable. Can u give me an answer?
T = (prob_A_V[evaltrainset.rgb_noiseIdx] < args.p_threshold). sum() / len(evaltrainset.rgb_noiseIdx)

可视化

我想知道是否有TP-FP概率分布的代码

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.