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

Faster-RCNN to extract the region feature #9

Open
sxf97 opened this issue Oct 16, 2022 · 6 comments
Open

Faster-RCNN to extract the region feature #9

sxf97 opened this issue Oct 16, 2022 · 6 comments

Comments

@sxf97
Copy link

sxf97 commented Oct 16, 2022

I would like to know how to use Faster-RCNN to extract the region feature(only retain 36 regions with highest Confidence) as the input feature and the dimension of each region feature is 2048,Can you give me a small demo if possible?

@lyhuohuo
Copy link
Collaborator

lyhuohuo commented Oct 17, 2022

You can follow the instructions in https://github.com/jiasenlu/vilbert_beta/tree/master/data. You just need to modify the code in file ./tools/generate_tsv.py. Specifically, change "image_ids" to the list of image paths you want to extract features.
If you only want to use the image features of MABSA downstream datasets, we provide the features in google drive https://drive.google.com/drive/folders/1rm0FtHOTMUfZfRjWIE9Ukn_1D5MDXQy3?usp=sharing.

@sxf97
Copy link
Author

sxf97 commented Oct 18, 2022

好的,谢谢你呀

@sxf97
Copy link
Author

sxf97 commented Oct 18, 2022

你好,我还想问一下这个代码的运行,您是在windows下还是在linux、ubuntu下运行的,caffa环境搭建好难

@lyhuohuo
Copy link
Collaborator

是在linux ubuntu环境下的,caffe配置是比较麻烦

@luckypeak-xyz
Copy link

You can follow the instructions in https://github.com/jiasenlu/vilbert_beta/tree/master/data. You just need to modify the code in file ./tools/generate_tsv.py. Specifically, change "image_ids" to the list of image paths you want to extract features.
If you only want to use the image features of MABSA downstream datasets, we provide the features in google drive https://drive.google.com/drive/folders/1rm0FtHOTMUfZfRjWIE9Ukn_1D5MDXQy3?usp=sharing.

请问后面预训练所需要的 _box _att_cls_again 文件夹下的 .npy.npz 文件都是通过这里得到的 .tsv 转换而来的吗?

@lyhuohuo
Copy link
Collaborator

是的

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