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

What is the feature extractor used for the pretrained M4C model provided for textvqa? #1263

Open
onuriel opened this issue Sep 11, 2022 · 0 comments

Comments

@onuriel
Copy link

onuriel commented Sep 11, 2022

What is the feature extractor used for the pretrained M4C model provided for textvqa?

I noticed the script : https://github.com/facebookresearch/mmf/blob/main/tools/scripts/features/extract_features_vmb.py

I would like to recreate the mmf/data/datasets/textvqa/defaults/features/open_images/detectron.lmdb as it is currently used for training/evaluating the m4c model given. To be more specific, I want to create an additional dataset to be used by the same pretrained model provided in your repo : https://mmf.sh/docs/projects/m4c#pretrained-m4c-models. To confirm these are the exact features, it would be necessary to create the dataset mentioned.

As there are two options :
python tools/scripts/features/extract_features_vmb.py --model_name=X-152 --image_dir=[some folder] --output_folder=[some_folder]
or
python tools/scripts/features/extract_features_vmb.py --model_name=X-101 --image_dir=[some folder] --output_folder=[some_folder]

I tried both of them on the textvqa dataset, and I can't seem to reproduce the exact features provided in mmf/data/datasets/textvqa/defaults/features/open_images/detectron.lmdb using the script https://github.com/facebookresearch/mmf/blob/main/tools/scripts/features/extract_features_vmb.py

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

1 participant