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
Correct way to extract image features with VinVL #7
Comments
Hi, I think we must to use the TSV file. We can generate the TSV using https://github.com/microsoft/scene_graph_benchmark/blob/main/tools/mini_tsv/tsv_demo.py . Just run the script up to line 56. It will produce After that, you can run the script |
Thanks for the comprehensive answer! |
hey friends, In line 37 of the tsv_demo.py file, does the code here need to change? I would be grateful! |
hi I want to get some suggestions about the more object label circumstance. I found the project provides us the labelmap file. But the labelmap only provide 50 objects. It is so smaller. I run the coco2014 , the object label 1370 is far bigger than it . So We should only add some id and name to the labelmap.file or we should from scratch to train the object detector of the project ? I have the coco 2014 36 box's label. But I don't know how to get bigger object label labelmap file If you have way, please help me . Thanks KeyError: 'broccoli' |
#7 (comment) |
Hi there, thanks for your response, as of now I have been able to create the tsv and yaml files. But I would like to have a little bit more of help on the last paragraph, since I do not understand how to point to the yaml file and how to make dataset to point to the directory containing the other files.
Thank you very much in advance. |
Hi, I found a way to circumvent using tsv files by modifying
|
Hi @SPQRXVIII001, I don't understand how you can extract the box features from the demo_image.py file without using the TSV files. I tried to run your code with some modifications because there are some errors and when I print the list of fields extracted by prediction there is not the field you call 'box_features'; in fact running print("fields:", prediction.fields()) there are only the fields: ['labels', 'scores', 'attr_labels', 'attr_scores']. |
Hi, @GabrieleFerrario, I think TSV files are unncessary. You need to modify your configuration yaml files at |
@GabrieleFerrario, you may also look at https://github.com/microsoft/scene_graph_benchmark/issues/8#issue-857781982 for some ideas. |
@vinson2233 hi, i still have some questions.firstly,"dataset should point to directory" what does this mean, after i have already set up yaml and related files, what should i change in vinvl_x152c4.yaml besides DATASETS.TSET! Or can you show your vinvl_x152c4.yaml? i will thank a lot! |
hi, i try it, it really works. but how can i use this feature to run run_captioning.py, file config seems to be different |
How can I get the label_file? My dataset doesn't have a list of dictionary where each box with at least "rect" (xyxy mode) and "class" fields. Thank you very much! |
Resolve conflicts between main and KERN_NEMESIS branches + updates
Hello,
Hi,
Could you please share your updated code. |
Hi!
How can I extract image features from my dataset with VinVL if it's not in tsv format, but in the form of a folder with image files? What's the correct way to do this?
The text was updated successfully, but these errors were encountered: