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

About the format of .npy file of the object detector output #3

Closed
CarolXiHang opened this issue Jan 10, 2020 · 2 comments
Closed

About the format of .npy file of the object detector output #3

CarolXiHang opened this issue Jan 10, 2020 · 2 comments

Comments

@CarolXiHang
Copy link

CarolXiHang commented Jan 10, 2020

Hi!
I was trying to run the test.py on my own images. So I use the pre-trained detector on my images first and get the result. But I am a little bit confused that it is mentioned in readme.md that each video should have a .npy file to save the object detection result. What is the format that could be load successfully?
For example, it seems that the format of 1 object could be
[[frame_name1, ?, confidence_1, [xmin, ymin, xmax, ymax]],
[frame_name2, ?, confidence_2, [xmin, ymin, xmax, ymax]],
.....]
but how can I define the format if there are several objects?

I am a freshman so it confused me a lot. Is there anyone who can help me? Thanks a lot.

@rhgao
Copy link
Owner

rhgao commented Jan 10, 2020

Hi sorry for the confusion.

I have just updated README and uploaded a sample script get generate object detection .npy files.

Each .npy file should contain all the object detections for that video with each detection represented by 7 numbers (frame_index,class_id,confidence_score,four bounding box coordinates).

Hope that helps.
Ruohan

@CarolXiHang
Copy link
Author

Thanks for your help!

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

2 participants