Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

How to use Oscar / VinVL for image-text retreival inference? #192

Open
yonatanbitton opened this issue Apr 12, 2022 · 0 comments
Open

How to use Oscar / VinVL for image-text retreival inference? #192

yonatanbitton opened this issue Apr 12, 2022 · 0 comments

Comments

@yonatanbitton
Copy link

Hello.

I need to execute simple inference for Image-text retreival, I want a score for image and a caption, as presented here for ViLT.

I've installed the package, and running run_retreival.py

I'm trying to following the instructions in the model zoo. By the way, the checkpoint for the VinVL doesn't work, but I can use Oscar model checkpoint as well.

What should be the --eval_model_dir? You write "# could be base/large models.", I pointed it the the model downloaded from the model zoo.

However, when I ran it, I receive:
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/coco_ir/test_captions.pt'

I found the coco_ir download here in the Download page, but it's 20GB and my network doesn't succeed downloading such file. Is it mandatory to run the simple inference?

Is there a simple way to receive a matching score given an image and a possible caption?

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant