GithubHelp home page GithubHelp logo

yashkant / concat-vqa Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 9.61 MB

Official code for the paper "Contrast and Classify: Training Robust VQA Models" published at ICCV, 2021

Home Page: https://yashkant.github.io/projects/concat-vqa.html

Python 100.00%
concat robust vqa

concat-vqa's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

concat-vqa's Issues

CS score in the paper, table 2

Hello,

For the table 2 in the paper, where CS score is reported, is it CS or CS-BT in the code? CS is computed for revqa, and CS-BT is computed for revqa_bt.

File missing

Hi,

Thank you for sharing the code. I am wondering if you failed to upload "val_target.pkl" to the split folder?

Kind regards,

Description of data in splits folder

Hello! Thank you for your great work. I was able to download files from drop box, however, could you add the description of data sets in split directory? Because I am not sure which files correspond to VQA V2, which to VQA-paraphrase and so on. E.g. splits/questions_train_aug.pkl.

Jurijs

Corresponding images

Hello,

Thanks for the code and provided extracted features for images. However, I would like to see corresponding images, where should I get them? I see that data contains information about image id, however, I am not sure where are these images.

Thanks,
Jurijs

"For grounding truth file to extract features ", but extract_features.py didn't have --imdb_gt_file <path_to_imdb_npy_file_generated_above>

Dear scholar,
extract_features.py didn't have the params named "imdb_gt_file" , so how to fulfill the object "For grounding truth file to extract features "

python data-release/extract_features.py --model_file data/detectron_model.pth --config_file data/detectron_config.yaml --imdb_gt_file <path_to_imdb_npy_file_generated_above> --output_folder <path_to_output_extracted_features>

Extracting features Install vqa-maskrcnn-benchmark(link) repository and download the model and config.

Dear scholar,
I found the link vqa-maskrcnn-benchmark didn't have the folder named as "data-release",where I can download it? So I can't run the instructions about the below procedures

cd data-release
wget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_model.pth
wget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_config.yaml
To extract features for images, run from root directory:

python data-release/extract_features.py --model_file data/detectron_model.pth --config_file data/detectron_config.yaml --image_dir <pa

data-release/extract_features.py, model.to("cuda") will throw errors.

Dear scholar,
in data-release/extract_features.py, model.to("cuda") will throw errors. and the code is broken. Could you have some suggestion?

def _build_detection_model(self):
cfg.merge_from_file(self.args.config_file)
#cfg.merge_from_list(["MODEL.DEVICE", "cuda"])

    cfg.freeze()

    model = build_detection_model(cfg)
    checkpoint = torch.load(self.args.model_file, map_location=torch.device("cpu"))
    load_state_dict(model, checkpoint.pop("model"))
    
    model.to("cuda")
    
    model.eval()
    
    return model

Script to generate negatives

Hello,

Could you please share the script to generate a list of negatives? Negatives, which we load from .pkl?

Jurijs

"For grounding truth file to extract features ", but extract_features.py didn't have --imdb_gt_file <path_to_imdb_npy_file_generated_above>

Dear scholar,
extract_features.py didn't have the params named "imdb_gt_file" , so how to fulfill the object "For grounding truth file to extract features "

python data-release/extract_features.py --model_file data/detectron_model.pth --config_file data/detectron_config.yaml --imdb_gt_file <path_to_imdb_npy_file_generated_above> --output_folder <path_to_output_extracted_features>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.