michuanhaohao / AlignedReID

Alignedreid++: Dynamically Matching Local Information for Person Re-Identification.
MIT License
401 stars 114 forks source link

Some wrong with the code? #44

Open yfzhang114 opened 4 years ago

yfzhang114 commented 4 years ago

Firstly, in Alignedreid_demo.py Line 21, we don't import os while using the following code os.environ['CUDA_VISIBLE_DEVICES'] = "0"

Second, is there anything noteworthy? I follow the original config and run python train_alignedreid.py -d market1501 -a resnet50 --test_distance global_local --reranking --labelsmooth, finally I got the follow result: Computing local distance... Using global and local branches for reranking using GPU to compute original distance starting re_ranking Computing CMC and mAP for re_ranking Results ---------- mAP(RK): 46.7% CMC curve(RK) Rank-1 : 63.3% Rank-5 : 76.7% Rank-10 : 82.0% Rank-20 : 86.8%

==> Best Rank-1 63.3%, achieved at epoch 300 Finished. Total elapsed time (h:m:s): 6:26:50. Training time (h:m:s): 6:01:18.

It is not normal, and I notice that my GLoss and Lloss is near to 0, is it normal? And if not, Can you give me some advice?

faedtodd commented 3 years ago

I got really bad results when I train with multi gpus, try "CUDA_VISIBLE_DEVICES='0' python train****.py "

AMiull commented 3 years ago

So am I.Have you solved the problem?