GithubHelp home page GithubHelp logo

Comments (3)

kilianyp avatar kilianyp commented on August 29, 2024 2

EDIT:
Okay, sorry for the confusion, this seems to be standard testing procedure
https://github.com/VisualComputingInstitute/triplet-reid/blob/master/excluders/market1501.py#L29

I did some digging, and it seems like it is because of the -1 images that are filtered out.
There are 3819 images starting with -1 in the test set:
15913 + 3819 = 19732

This also decreases performance by quite some margin!!
I downloaded the weights you had uploaded to evaluate for stride 1.
I am also using scikit-learn 0.19.1!!

python script/experiment/train.py
-d '(0,)'
--only_test true
--dataset market1501
--last_conv_stride 1
--normalize_feature false
--exp_dir training/baseline_huangjong/
--model_weight_file market1501-huanghoujing/model_weight.pth

market1501 test set

NO. Images: 35788
NO. IDs: 752
NO. Query Images: 3368
NO. Gallery Images: 19732
NO. Multi-query Images: 12688

Loaded model weights from market1501-huanghoujing/model_weight.pth

=========> Test on dataset: market1501 <=========

Extracting feature...
1100/1119 batches done, +1.97s, total 103.59s
Done, 105.52s
Computing distance...
Done, 1.31s
Computing scores...
User Warning: Version 0.18.1 is required for package scikit-learn, your current version is 0.19.1. As a result, the mAP score may not be totally correct. You can try pip uninstall scikit-learn and then pip install scikit-learn==0.18.1
Done, 14.88s
Single Query: [mAP: 70.76%], [cmc1: 82.42%], [cmc5: 94.92%], [cmc10: 96.76%]
Multi Query, Computing distance...
Done, 1.31s
Multi Query, Computing scores...
User Warning: Version 0.18.1 is required for package scikit-learn, your current version is 0.19.1. As a result, the mAP score may not be totally correct. You can try pip uninstall scikit-learn and then pip install scikit-learn==0.18.1
Done, 15.00s
Multi Query: [mAP: 77.31%], [cmc1: 86.16%], [cmc5: 96.94%], [cmc10: 98.13%]

from person-reid-triplet-loss-baseline.

huanghoujing avatar huanghoujing commented on August 29, 2024 1

Thank you very much for attention. In Market-1501, id -1 should not be used in testing, referring to the official site:

  1. What are images beginning with "0000" and "-1"?
    Ans: Names beginning with "0000" are distractors produced by DPM false detection.
    Names beginning with "-1" are junks that are neither good nor bad DPM bboxes.
    So "0000" will have a negative impact on accuracy, while "-1" will have no impact.
    During testing, we rank all the images in "bounding_box_test". Then, the junk images are just neglected; distractor images are not neglected.

Since we would neglect all images with id -1, I simply do not include them in the test set. These two methods are equivalent.

from person-reid-triplet-loss-baseline.

kilianyp avatar kilianyp commented on August 29, 2024

Also the numbers in the README do not match (https://github.com/huanghoujing/person-reid-triplet-loss-baseline#training-time).
In practice, the number of training images is fine though!

market1501 trainval set

NO. Images: 12936
NO. IDs: 751

This is logged for the test set:
market1501 test set

NO. Images: 31969
NO. IDs: 751
NO. Query Images: 3368 (correct)
NO. Gallery Images: 15913 (not correct)
NO. Multi-query Images: 12688

from person-reid-triplet-loss-baseline.

Related Issues (20)

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.