Update README.md
Browse files
README.md
CHANGED
|
@@ -31,6 +31,17 @@ Each "story" is a sample of the dataset and can vary in length and complexity.
|
|
| 31 |
The dataset contains 8,881 samples, divided into train and validation splits.
|
| 32 |

|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
## What Is a Story in StoryFrames?
|
| 35 |
* **A story is a sequence of scenes:**
|
| 36 |
Each story is composed of multiple scenes, where each scene is a part of the overall narrative.
|
|
@@ -52,3 +63,62 @@ Each story is composed of multiple scenes, where each scene is a part of the ove
|
|
| 52 |
* **Narrative Descriptions:**
|
| 53 |
* `sentence_parts`: This field contains a list of strings. Each string provides a description for one scene in the story. Even though a scene is made up of multiple images, the corresponding description captures the plot progression over all images of that scene.
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
The dataset contains 8,881 samples, divided into train and validation splits.
|
| 32 |

|
| 33 |
|
| 34 |
+
If you want to work with a specific context length (i.e., number of scenes per story), you can filter the dataset as follows:
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from datasets import load_dataset
|
| 38 |
+
|
| 39 |
+
ds = load_dataset("ingoziegler/StoryFrames")
|
| 40 |
+
|
| 41 |
+
# to work with stories containing 3 scenes
|
| 42 |
+
ds_3 = ds.filter(lambda sample: sample["num_scenes"] == 3)
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
## What Is a Story in StoryFrames?
|
| 46 |
* **A story is a sequence of scenes:**
|
| 47 |
Each story is composed of multiple scenes, where each scene is a part of the overall narrative.
|
|
|
|
| 63 |
* **Narrative Descriptions:**
|
| 64 |
* `sentence_parts`: This field contains a list of strings. Each string provides a description for one scene in the story. Even though a scene is made up of multiple images, the corresponding description captures the plot progression over all images of that scene.
|
| 65 |
|
| 66 |
+
## Detailed Field Descriptions
|
| 67 |
+
* `sentence_parts`
|
| 68 |
+
* Type: `List[str]`
|
| 69 |
+
* A narrative breakdown where each entry describes one scene.
|
| 70 |
+
|
| 71 |
+
* `start_times`
|
| 72 |
+
* `List[float]`
|
| 73 |
+
* A list of timestamps marking the beginning of each scene.
|
| 74 |
+
|
| 75 |
+
* `end_times`
|
| 76 |
+
* Type: `List[float]`
|
| 77 |
+
* A list of timestamps marking the end of each scene.
|
| 78 |
+
|
| 79 |
+
* `background_description`
|
| 80 |
+
* Type: `str`
|
| 81 |
+
* A brief summary of the overall setting or background of the story.
|
| 82 |
+
|
| 83 |
+
* `video_name`
|
| 84 |
+
* Type: `str`
|
| 85 |
+
* The identifier or name of the source video.
|
| 86 |
+
* This is not a unique identifier for stories as a video can contain multiple stories that are annotated separately.
|
| 87 |
+
|
| 88 |
+
* `question_info`
|
| 89 |
+
* Type: `str`
|
| 90 |
+
* Additional information used together with the video name to uniquely identify each story.
|
| 91 |
+
|
| 92 |
+
* `story_id`
|
| 93 |
+
* Type: `str`
|
| 94 |
+
* Automatically generated by combining `video_name` and `question_info` (e.g., "video_name---question_info") to create a unique identifier for each story.
|
| 95 |
+
|
| 96 |
+
* `num_actors_in_video`
|
| 97 |
+
* Type: `int`
|
| 98 |
+
* The number of actors present in the video.
|
| 99 |
+
|
| 100 |
+
* `subsampled_frames_per_scene`
|
| 101 |
+
* Type: `List[List[float]]`
|
| 102 |
+
* Each inner list contains the timestamps (formatted as `frame_sec.millisec`, e.g., `frame_1.448629`) for the frames that were selected from a scene.
|
| 103 |
+
* Each position of the inner lists correspond to the position of the description in `sentence_parts` and `scenes`,
|
| 104 |
+
* The number of inner lists corresponds to the number of available `scenes`, as marked in `num_scenes`.
|
| 105 |
+
|
| 106 |
+
* `scenes`
|
| 107 |
+
* Type: `List[List[Image]]`
|
| 108 |
+
* Each inner list holds the actual frames (images) that were subsampled from a scene.
|
| 109 |
+
* The structure of this field directly corresponds to that of `subsampled_frames_per_scene`.
|
| 110 |
+
* Each position of the inner lists correspond to the position of the description in `sentence_parts` and `subsampled_frames_per_scene`.
|
| 111 |
+
|
| 112 |
+
* `num_scenes`
|
| 113 |
+
* Type: `int`
|
| 114 |
+
* The total number of scenes in the story.
|
| 115 |
+
|
| 116 |
+
* `caption`
|
| 117 |
+
* Type: `str`
|
| 118 |
+
* An optional caption for the sample.
|
| 119 |
+
* This may be empty if no caption was provided.
|
| 120 |
+
|
| 121 |
+
* `sentence_parts_nocontext`
|
| 122 |
+
* Type: `List[str]`
|
| 123 |
+
* A variant of the scene descriptions that excludes sequential context.
|
| 124 |
+
* This may be empty if no annotation was provided.
|