Datasets:
Update Readme
Browse files
README.md
CHANGED
@@ -187,7 +187,7 @@ The dataset contains five subtask or skills:
|
|
187 |
|
188 |

|
189 |
|
190 |
-
Given a sequence of comic panels, a missing panel, and a set of option panels, the task is to
|
191 |
</details>
|
192 |
|
193 |
<details>
|
@@ -197,7 +197,7 @@ Given a sequence of comic panels, a missing panel, and a set of option panels, t
|
|
197 |

|
198 |
|
199 |
These skills require understanding the context sequence to then pick the best panel to continue the story, focusing on the characters, the visual elements, and the text:
|
200 |
-
- Character Coherence: Given a sequence of comic panels, pick the panel from the two options that best continues the story in a coherent with the characters. Both options are the same panel, but the text in the speech bubbles
|
201 |
- Visual Closure: Given a sequence of comic panels, pick the panel from the options that best continues the story in a coherent way with the visual elements.
|
202 |
- Text Closure: Given a sequence of comic panels, pick the panel from the options that best continues the story in a coherent way with the text. All options are the same panel, but with text in the speech retrieved from different panels.
|
203 |
|
@@ -237,7 +237,9 @@ import numpy as np
|
|
237 |
from datasets import Features, Value, Image as ImageFeature
|
238 |
|
239 |
class SingleImagePickAPanel:
|
240 |
-
def __init__(self, max_size=500, margin=10, label_space=20, font_path=
|
|
|
|
|
241 |
self.max_size = max_size
|
242 |
self.margin = margin
|
243 |
self.label_space = label_space
|
|
|
187 |
|
188 |

|
189 |
|
190 |
+
Given a sequence of comic panels, a missing panel, and a set of option panels, the task is to pick the panel that best fits the sequence.
|
191 |
</details>
|
192 |
|
193 |
<details>
|
|
|
197 |

|
198 |
|
199 |
These skills require understanding the context sequence to then pick the best panel to continue the story, focusing on the characters, the visual elements, and the text:
|
200 |
+
- Character Coherence: Given a sequence of comic panels, pick the panel from the two options that best continues the story in a coherent with the characters. Both options are the same panel, but the text in the speech bubbles has been swapped.
|
201 |
- Visual Closure: Given a sequence of comic panels, pick the panel from the options that best continues the story in a coherent way with the visual elements.
|
202 |
- Text Closure: Given a sequence of comic panels, pick the panel from the options that best continues the story in a coherent way with the text. All options are the same panel, but with text in the speech retrieved from different panels.
|
203 |
|
|
|
237 |
from datasets import Features, Value, Image as ImageFeature
|
238 |
|
239 |
class SingleImagePickAPanel:
|
240 |
+
def __init__(self, max_size=500, margin=10, label_space=20, font_path=None):
|
241 |
+
if font_path is None:
|
242 |
+
raise ValueError("Font path must be provided. Testing was done with 'Arial.ttf'")
|
243 |
self.max_size = max_size
|
244 |
self.margin = margin
|
245 |
self.label_space = label_space
|