Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test method for vehicleid dataset #15

Closed
lhc11171552 opened this issue May 31, 2021 · 4 comments
Closed

Test method for vehicleid dataset #15

lhc11171552 opened this issue May 31, 2021 · 4 comments

Comments

@lhc11171552
Copy link

Since the vehicleid dataset is different from other datasets, an error will be reported if the vehicleid dataset is tested according to the test method of other datasets.

@heshuting555
Copy link
Collaborator

you can follow the command in the README like that:
python test.py --config_file configs/VehicleID/vit_transreid_stride.yml MODEL.DEVICE_ID "('0')" TEST.WEIGHT '../logs/vehicleID_vit_transreid_stride/transformer_120.pth'

@lhc11171552
Copy link
Author

Still an error:Traceback (most recent call last):
File "test.py", line 68, in
num_query)
File "/home/w/lhc/TransReID-main_vehicleid/processor/processor.py", line 166, in do_inference
cmc, mAP, _, _, _, _, _ = evaluator.compute()
File "/home/w/lhc/TransReID-main_vehicleid/utils/metrics.py", line 131, in compute
cmc, mAP = eval_func(distmat, q_pids, g_pids, q_camids, g_camids)
File "/home/w/lhc/TransReID-main_vehicleid/utils/metrics.py", line 81, in eval_func
assert num_valid_q > 0, "Error: all query identities do not appear in gallery"
AssertionError: Error: all query identities do not appear in gallery

@heshuting555
Copy link
Collaborator

You can print your distmat.shape to check the error!

Hope the answer is helpful!

@459737087
Copy link

459737087 commented Aug 23, 2022

Hello !! Did you find the reason?
I also met this.

@lhc11171552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants