Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
marksibrahim commited on
Commit
80955cd
·
verified ·
1 Parent(s): 5ee9602

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -79,11 +79,11 @@ We have two subsets: Common-O (3 - 8 objects) and Common-O Complex (8 - 16 objec
79
  ```python
80
  import datasets
81
 
 
82
  common_o = datasets.load("facebook/Common-O")["main"]
83
-
84
  x = common_o[3]
85
 
86
-
87
  output: str = model(x["image_1"], x["image_2"], x["question"])
88
 
89
  check_answer(output, x["answer"])
@@ -92,6 +92,9 @@ check_answer(output, x["answer"])
92
  To check the answer, we use an exact match criteria:
93
 
94
  ```python
 
 
 
95
  def check_answer(
96
  generation: str,
97
  ground_truth: List[str]
 
79
  ```python
80
  import datasets
81
 
82
+ # get a sample
83
  common_o = datasets.load("facebook/Common-O")["main"]
84
+ # common_o_complex = datasets.load("facebook/Common-O")["complex"]
85
  x = common_o[3]
86
 
 
87
  output: str = model(x["image_1"], x["image_2"], x["question"])
88
 
89
  check_answer(output, x["answer"])
 
92
  To check the answer, we use an exact match criteria:
93
 
94
  ```python
95
+ import re
96
+
97
+
98
  def check_answer(
99
  generation: str,
100
  ground_truth: List[str]