-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Running demo on custom images #347
Comments
Hi, @turinaf
|
Thank you @layumi , |
Would you have code to share? I would like to see ho you set up the demo so I can do the same for my own test set |
First you need to modify
And the images don't have label and camera ID. So, I saved only
I removed those lines of code using query_cam, query_label, same for gallery_cam & gallery_label. My data also doen't have class names. So I commented out the code which is getting class_names. Another problem I encountered when running
I used For DemoI just copied demo.py and saved as custom_demo.py and modified it.
for
For visualization, you can make it display top 2, 3 or even one matching image. I visualized top 3 images. I did this through trial and error. I hope the info I provided will help or at least give you a hint to try it on your custom data. Try modifying the codes to meet your needs.Let me know if you have different suggestion. |
@turinaf |
Hi @layumi, thank you for the great repo.
I have run test.py and got extracted features saved as
multi_query.mat
andpytorch_result.mat
The following was the result of running test.py:
To use custom images (cropped detections, say from Yolo), do we need to have big dataset and prepare it with
prepare.y
like we did for market1501? I was wondering if we can extract features and return top matching images among the few detections we passed to the demo.Thank you!
The text was updated successfully, but these errors were encountered: