Code Monkey home page Code Monkey logo

cross-modal-re-id-baseline's Issues

function 'eval_sysu' gives different results with the same model

Hi, your work really inspires me and I have done a lot of work based on your code.
But today I find that the function 'eval_sysu' in eval_metric.py gives different results with the same model, and . I have not made any changes to this part of code, so it is absolutely identical with the original one in this repo.
I want to ask that have you met this problem before? I hope to get your reply soon, thanks!

An interesting phenomenon when testing on RegDB

When testing on RegDB, Rank-1, mAP, mINP seem right in the first round.
But in the next few rounds, the indexes are abnormally high.
图片

So I checked test.py and found that the test_trial is changing in the testing process, which means that the train-test splitting is different from that of training process.
The images in the training process might be divided into test set if the train-test splitting changed, so the indexes are extremly high.
Is that right?

图片

Errors for the DataLoader

Hello,thanks for your work!
However, I met several errors (about the DataLoader) when running train.py:

Traceback (most recent call last):
File "train.py", line 382, in
train(epoch)
File "train.py", line 251, in train
for batch_idx, (input1, input2, label1, label2) in enumerate(trainloader):
TypeError: Caught TypeError in DataLoader worker process 0.

Original Traceback (most recent call last):

File "/home/cyhs/Cross-Modal-Re-ID-baseline/data_loader.py", line 29, in getitem
img1 = self.transform(img1)
File "/home/cyhs/anaconda3/envs/pytorchenv/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 61, in call
img = t(img)
File "/home/cyhs/anaconda3/envs/pytorchenv/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 172, in call
return F.to_pil_image(pic, self.mode)
File "/home/cyhs/anaconda3/envs/pytorchenv/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 257, in to_pil_image
raise TypeError('Input type {} is not supported'.format(npimg.dtype))
TypeError: Input type bool is not supported

Waiting for your reply, thanks a lot!

RegDB Dataset

I have no RegDB Dataset,could you give me aprivate download link

This is about how to evalute model

I am a beginer in reid. When I use your code evalute model on sysu-mm01 dataset, i find 10 trial, does it mean the final result should be the average of 10 trials? And which one is the result on your paper, pool or fc?

What about the ablation study of AGW on visible-infrared Re-ID?

Hi~
It is a nice job. The proposed WRT loss seems to be the improved version of the original Triplet loss. Did you carry out any ablation studies on the proposed AGW baseline for cross-modality visible-infrared Re-ID? If so, how much performance improved by the WRT comparing to the triplet?

Thanks

What is your python version

Hello,thanks for your beautiful work!
but I get some error as follow in run your code:
"result = unpickler.load()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaf in position 0: ordinal not in range(128)"
maybe is beacause of python version,I use Python 3.6 and Pytorch 1.0.1(stable) with CUDA 10.
wait your reply,thanks

FC or Pool feature?

Excuse me.
I ran the command python train.py --dataset sysu --lr 0.1 --method agw --gpu 1 and test on the best epoch(26, just the same as your best epoch), and got POOL: Rank-1: 49.60% | mAP: 49.08% , it's a little better than the model you offered which written in your paper: POOL: Rank-1: 47.50% | mAP: 47.65%
However, when I observe the trainning log , I found the result of FC feature is better than POOL feature, while the test result is opposite:
In the training process:
Test Epoch: 26 POOL: Rank-1: 50.30% | Rank-5: 74.78% | Rank-10: 84.09%| Rank-20: 93.87%| mAP: 49.01%| mINP: 35.75% FC: Rank-1: 52.33% | Rank-5: 76.49% | Rank-10: 85.64%| Rank-20: 92.85%| mAP: 50.94%| mINP: 37.69%

In the testing process:
Test Trial: 0 POOL: Rank-1: 52.33% | Rank-5: 76.49% | Rank-10: 85.64%| Rank-20: 92.85%| mAP: 50.94%| mINP: 37.69% FC: Rank-1: 50.30% | Rank-5: 74.78% | Rank-10: 84.09%| Rank-20: 93.87%| mAP: 49.01%| mINP: 35.75%

Then I found you use the POOL performance as the FC output in test.py:

print('FC: Rank-1: {:.2%} | Rank-5: {:.2%} | Rank-10: {:.2%}| Rank-20: {:.2%}| mAP: {:.2%}| mINP: {:.2%}'.format( cmc_pool[0], cmc_pool[4], cmc_pool[9], cmc_pool[19], mAP_pool, mINP_pool))
So I think you actually used the FC performance which got Rank-1 47.50%. I'm little confused about it. Which one (POOL/FC feature) should be used in final model evaluation? Or both are OK?

No module named 'model_base'

Excuse me.
When I run test.py , there is an error that "ModuleNotFoundError: No module named 'model_base'". How can I solve the problem?
Thank you!!

The score of train_ext.py is wrong

Hi, Dr Ye, thanks for your released code. I have trained the model but got lower results ------only 28.03(map). I just run python pre_process_sysu.py to prepare the dataset and 'python train_ext.py --dataset sysu --lr 0.1 --method adp --augc 1 --rande 0.5 --alpha 1 --square 1 --gamma 1 --gpu 4' to train the model. Could you please help me to find out why I get the wrong result,Thank you very much!

The score of test.py is wrong

Hi,Dr.Ye,thanks for your released code,I‘m learning it,but when I run the test.py with model file
sysu_awg_p4_n8_lr_0.1_seed_0.t,the result is very low------only 4.15(map) and2(rank-1), I just change the path of the data and model .Could you please help me to find out why i get the wrong result,Thank you very much!

遇到了维度问题

您好,我在可视化过程当中遇到了维度问题ValueError: Found array with dim 4. Estimator expected <= 2.应该如何解决呢?

The grayscale transformation in ICCV21 CAJ

Thanks for your impressive work. In the ICCV21 CAJ paper, the grayscale transformation (CA) is used. But is seems that the codes don't use CA? Could you please describe what is grayscale transformation, and how apply it to data transform? Thanks.

Don‘t converge on RegDB

Thanks for the source code, it helped me a lot. But when I train on RegDB dataset, the model does not converge. I used the following statement:
python train_ext.py --dataset regdb --lr 0.1 --method adp --augc 1 --rande 0.5 --alpha 1 --square 1 --gamma 1 --gpu 0
please tell me what should I do

Results cannot be reproduced?

I train a model by:
0c4286b4416487068b6e1f046708fd4
After training 98 epoch, I get the following results:
d3356f69f666418062f127910f05b6a
Why my result are so different from yours?
image

The setting is:
image

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.