Upload 2 files
Browse files- README.md +42 -0
- StorySalon.zip +3 -0
README.md
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Intelligent Grimm - Open-ended Visual Storytelling via Latent Diffusion Models (CVPR 2024)
|
2 |
+
|
3 |
+
This is the StorySalon dataset proposed in StoryGen.
|
4 |
+
|
5 |
+
For the open-source PDF data, you can directly download the frames, corresponding masks, descriptions and original story narratives.
|
6 |
+
For the data extracted from YouTube videos, we also provide their corresponding masks, descriptions and original story narratives in this repostiroy. However, you need to refer to `./Image_Inpainted/Video/metadata.json` to download the video meta-data by yourself, and then use the provided data processing pipeline to obtain the frames.
|
7 |
+
|
8 |
+
## Video Meta Data Preparation
|
9 |
+
We provide the metadata of our StorySalon dataset in `./Image_Inpainted/Video/metadata.json`. It includes the id, name, url, duration and the keyframe list after filtering of the videos.
|
10 |
+
|
11 |
+
To download these videos, we recommend to use [youtube-dl](https://github.com/yt-dlp/yt-dlp) via:
|
12 |
+
```
|
13 |
+
youtube-dl --write-auto-sub -o 'file\%(title)s.%(ext)s' -f 135 [url]
|
14 |
+
```
|
15 |
+
|
16 |
+
The keyframes extracted with the following data processing pipeline (step 1) can be filtered according to the keyframe list provided in the metadata to avoid manually selection.
|
17 |
+
|
18 |
+
The corresponding masks, story-level description and visual description can be extracted with the following data processing pipeline or downloaded from [here](https://huggingface.co/datasets/haoningwu/StorySalon).
|
19 |
+
|
20 |
+
|
21 |
+
## Data Processing Pipeline
|
22 |
+
The data processing pipeline includes several necessary steps:
|
23 |
+
- Extract the keyframes and their corresponding subtitles;
|
24 |
+
- Detect and remove duplicate frames;
|
25 |
+
- Segment text, people, and headshots in images; and remove frames that only contain real people;
|
26 |
+
- Inpaint the text, headshots and real hands in the frames according to the segmentation mask;
|
27 |
+
- (Optional) Use Caption model combined with subtitles to generate a description of each image.
|
28 |
+
|
29 |
+
For a more detailed introduction to the data processing pipeline, please refer to [StoryGen](https://github.com/haoningwu3639/StoryGen) and our paper.
|
30 |
+
|
31 |
+
## Citation
|
32 |
+
If you use this dataset for your research or project, please cite:
|
33 |
+
|
34 |
+
@inproceedings{liu2024intelligent,
|
35 |
+
title = {Intelligent Grimm -- Open-ended Visual Storytelling via Latent Diffusion Models},
|
36 |
+
author = {Chang Liu, Haoning Wu, Yujie Zhong, Xiaoyun Zhang, Yanfeng Wang, Weidi Xie},
|
37 |
+
booktitle = {The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
|
38 |
+
year = {2024},
|
39 |
+
}
|
40 |
+
|
41 |
+
## Contact
|
42 |
+
If you have any question, please feel free to contact haoningwu3639@gmail.com or liuchang666@sjtu.edu.cn.
|
StorySalon.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8de47cb8a9903b38608b8748a44de4b11bd7e3640c8f0412a32a77b42c714537
|
3 |
+
size 9701802783
|