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

How to generate my own vgbua_res101_precomputed files. #33

Closed
kememem opened this issue May 30, 2020 · 3 comments
Closed

How to generate my own vgbua_res101_precomputed files. #33

kememem opened this issue May 30, 2020 · 3 comments

Comments

@kememem
Copy link

kememem commented May 30, 2020

Hi,

When I use your code to evaluate my own visual grounding dataset, could you give me some instructions for constructing vgbua_res101_precomputed files?

Thanks

@jackroos
Copy link
Owner

jackroos commented May 31, 2020

You can download the files for VQA here and follow the same format. Thank you!

@kememem
Copy link
Author

kememem commented Jun 2, 2020

Thanks for the reply. I've checked the files and understand the meaning of most key/value pairs. However, could you explain me what does "boxes" key mean? How can I generate the values of "boxes" from an annotated image. Thanks!

@jackroos
Copy link
Owner

jackroos commented Jun 2, 2020

It means the bounding boxes of objects in the image, you can decode the "boxes" following our code of VQA dataset:

item[field] = np.frombuffer(base64.decodebytes(item[field].encode()),

After it is decoded, it should be a numpy array of shape (#boxes, 4). And you can encode boxes of your own image by following way:
https://github.com/jackroos/bottom-up-attention/blob/4de0a37c98039470f27a0cbfa94765e90bb80d24/tools/generate_tsv_v2.py#L98

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