File size: 2,498 Bytes
be35937
 
06f70fd
 
 
 
 
 
 
be35937
06f70fd
be35937
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0823441
be35937
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e266a3f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
license: apache-2.0
task_categories:
- image-to-video
tags:
- video-generation
- trajectory-control
- segmentation
- bounding-box
---

[[Paper](https://arxiv.org/pdf/2503.16421)] [[Project Page](https://quanhaol.github.io/magicmotion-site/)] [[Github](https://github.com/quanhaol/MagicMotion)]

## πŸ§™ MagicData Dataset
### 1. Dataset Introduction

The MagicData Dataset, introduced in [MagicMotion](https://arxiv.org/pdf/2503.16421), is a comprehensive trajectory controllable video generation dataset with rich semantic annotations. This dataset features high-quality videos with precise segmentation masks and bounding boxes annotations, designed to advance the field of controllable video synthesis and understanding.

The dataset consists of 23K diverse videos, each meticulously annotated with both pixel-level segmentation masks and object-level bounding boxes. Each video in the dataset is carefully curated to ensure high visual quality and annotation accuracy, making it suitable for training state-of-the-art video generation and understanding models.


### 2. File Structure
```
MagicData
β”œβ”€β”€ videos
β”‚   β”œβ”€β”€ videoid_1.mp4
β”‚   β”œβ”€β”€ videoid_2.mp4
β”‚   β”œβ”€β”€ ...
β”œβ”€β”€ masks
β”‚   β”œβ”€β”€ videoid_1
β”‚   β”‚   β”œβ”€β”€ annotated_frame_00000.png
β”‚   β”‚   β”œβ”€β”€ annotated_frame_00001.png
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ videoid_2
β”‚   β”‚   β”œβ”€β”€ ...
β”œβ”€β”€ boxs
β”‚   β”œβ”€β”€ videoid_1
β”‚   β”‚   β”œβ”€β”€ annotated_frame_00000.png
β”‚   β”‚   β”œβ”€β”€ annotated_frame_00001.png
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ videoid_2
β”‚   β”‚   β”œβ”€β”€ ...
β”œβ”€β”€ MagicData.csv   # detailed information of each video
```

### 3. Useful scripts
- Data Extraction
```bash
sudo apt-get install git-lfs
git lfs install
git clone https://huggingface.co/datasets/quanhaol/MagicData
tar -xzvf boxs.tar.gz
cat masks.tar.gz.part* > masks.tar.gz
tar -xzvf masks.tar.gz
cat videos.zip.part_* > videos.zip
unzip videos.zip
```

## Citation
If you found this dataset useful, please cite our [paper](https://arxiv.org/pdf/2503.16421).
```bibtex
@article{li2025magicmotion,
  title={Magicmotion: Controllable video generation with dense-to-sparse trajectory guidance},
  author={Li, Quanhao and Xing, Zhen and Wang, Rui and Zhang, Hui and Dai, Qi and Wu, Zuxuan},
  journal={arXiv preprint arXiv:2503.16421},
  year={2025}
}
```

## Contact

[liqh24@m.fudan.edu.cn](liqh24@m.fudan.edu.cn)
[zxing20@fudan.edu.cn](zxing20@fudan.edu.cn)