Skip to content

Commit

Permalink
add typical vqa examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dandelin committed Apr 30, 2021
1 parent 041c08f commit 130ecea
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions demo_vqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,19 @@ def infer(url, text):
examples=[
[
"https://s3.geograph.org.uk/geophotos/06/21/24/6212487_1cca7f3f_1024x1024.jpg",
"Is the sky cloudy?",
"What is the color of the flower?",
],
[
"https://s3.geograph.org.uk/geophotos/06/21/24/6212487_1cca7f3f_1024x1024.jpg",
"Color of flower?",
"https://computing.ece.vt.edu/~harsh/visualAttention/ProjectWebpage/Figures/vqa_1.png",
"What is the mustache made of?",
],
[
"https://computing.ece.vt.edu/~harsh/visualAttention/ProjectWebpage/Figures/vqa_2.png",
"How many slices of pizza are there?",
],
[
"https://computing.ece.vt.edu/~harsh/visualAttention/ProjectWebpage/Figures/vqa_3.png",
"Does it appear to be rainy?",
],
],
)
Expand Down

0 comments on commit 130ecea

Please sign in to comment.