File size: 6,315 Bytes
6e1cd5f
 
45b106a
 
 
 
 
 
 
 
 
 
 
6e1cd5f
45b106a
 
 
 
 
3716ac0
 
45b106a
 
3716ac0
 
 
 
 
 
45b106a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3716ac0
 
 
 
 
 
 
 
 
 
 
 
45b106a
 
 
 
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
---
license: apache-2.0
pretty_name: AVISet
language:
  - en
tags:
  - video-editing
  - mask-guided-editing
  - video-captioning
  - instruction-following
  - multimodal
size_categories:
  - 10K<n<100K
---

# AVISet

AVISet is a large-scale dataset for mask-guided, text-conditioned video editing. Each sample pairs a source video with a temporally aligned mask video that identifies the editable subject or region. Natural-language captions describe the source content, and the test split additionally provides an editing prompt describing the desired edited result.

AVISet is the official dataset released with **[Audio-sync Video Instance Editing with Granularity-Aware Mask Refiner](https://arxiv.org/abs/2512.10571)**.

The dataset contains 73,505 samples across training, validation, and test splits. All media is packaged into independently extractable TAR shards for reliable downloading and large-scale data loading.

## AVI-Edit

- **Paper:** [arXiv:2512.10571](https://arxiv.org/abs/2512.10571)
- **Code:** [github.com/suimuc/AVI-Edit-Framework](https://github.com/suimuc/AVI-Edit-Framework)
- **Project page:** [hjzheng.net/projects/AVI-Edit](https://hjzheng.net/projects/AVI-Edit/)

## Dataset Summary

| Split | Samples | Source videos | Mask videos | TAR shards | TAR size |
| --- | ---: | ---: | ---: | ---: | ---: |
| Training | 71,505 | 71,505 | 71,505 | 36 | 170.67 GB |
| Validation | 1,000 | 1,000 | 1,000 | 1 | 2.38 GB |
| Test | 1,000 | 1,000 | 1,000 | 1 | 2.30 GB |
| **Total** | **73,505** | **73,505** | **73,505** | **38** | **175.35 GB** |

The training and validation splits provide source captions. The test split also contains `editing_prompt`, which describes the intended transformation of the masked subject or region.

## Repository Structure

```text
AVISet/
├── README.md
├── training.csv
├── validating.csv
├── testing.csv
├── training/
│   ├── part_01.tar
│   ├── part_02.tar
│   ├── ...
│   └── part_36.tar
├── validating/
│   └── part_01.tar
└── testing/
    └── part_01.tar
```

Each sample contains two MP4 files with matching numeric identifiers:

```text
000000.mp4
000000_mask.mp4
000001.mp4
000001_mask.mp4
...
```

- `<id>.mp4` is the source video.
- `<id>_mask.mp4` is its temporally aligned mask video.
- White mask pixels identify the editable foreground or subject.
- Black mask pixels identify regions intended to remain unchanged.

The source and mask videos have matching frame counts, frame rates, durations, and spatial dimensions. Source videos may contain an audio track, while mask videos contain video only. Media properties such as resolution and frame rate can vary across samples.

## CSV Schema

### Training and validation

`training.csv` and `validating.csv` contain the following fields:

| Field | Type | Description |
| --- | --- | --- |
| `path` | string | Path to the source video relative to the extracted dataset root, for example `training/000000.mp4`. |
| `mask_path` | string | Path to the corresponding mask video, for example `training/000000_mask.mp4`. |
| `caption` | string | Natural-language description of the source video's subjects, actions, appearance, and scene. |

### Test

`testing.csv` contains one additional field:

| Field | Type | Description |
| --- | --- | --- |
| `path` | string | Path to the source video relative to the extracted dataset root, for example `testing/000000.mp4`. |
| `mask_path` | string | Path to the corresponding mask video, for example `testing/000000_mask.mp4`. |
| `caption` | string | Natural-language description of the original source video. |
| `editing_prompt` | string | Text description of the desired edited video, especially the intended transformation of the masked subject or region. |

An abbreviated test record looks like:

```csv
path,mask_path,caption,editing_prompt
testing/000000.mp4,testing/000000_mask.mp4,"A young man appears to be engaged in a conversation...","A young woman with long dark hair appears to be engaged in a conversation..."
```

## Download

Download the complete dataset with the Hugging Face CLI:

```bash
huggingface-cli download suimu/AVISet \
  --repo-type dataset \
  --local-dir AVISet
```

To download only selected files or splits, use `--include`. For example:

```bash
# Validation metadata and media only
huggingface-cli download suimu/AVISet \
  --repo-type dataset \
  --include "validating.csv" "validating/*" \
  --local-dir AVISet

# Test metadata and media only
huggingface-cli download suimu/AVISet \
  --repo-type dataset \
  --include "testing.csv" "testing/*" \
  --local-dir AVISet
```

## Extraction

Extract each split into a directory with the same name as the CSV path prefix:

```bash
mkdir -p data/training data/validating data/testing

for shard in AVISet/training/part_*.tar; do
  tar -xf "$shard" -C data/training
done

for shard in AVISet/validating/part_*.tar; do
  tar -xf "$shard" -C data/validating
done

for shard in AVISet/testing/part_*.tar; do
  tar -xf "$shard" -C data/testing
done

cp AVISet/training.csv AVISet/validating.csv AVISet/testing.csv data/
```

The resulting layout is:

```text
data/
├── training.csv
├── validating.csv
├── testing.csv
├── training/
│   ├── 000000.mp4
│   ├── 000000_mask.mp4
│   └── ...
├── validating/
│   ├── 000000.mp4
│   ├── 000000_mask.mp4
│   └── ...
└── testing/
    ├── 000000.mp4
    ├── 000000_mask.mp4
    └── ...
```

Each TAR shard can be extracted independently. Files in different shards use unique identifiers within their split, so all shards for a split can be extracted into the same directory.

## Citation

If you find AVISet or AVI-Edit useful for your research, please cite:

```bibtex
@article{avi-edit,
  title={Audio-sync Video Instance Editing with Granularity-Aware Mask Refiner},
  author={Zheng, Haojie and Weng, Shuchen and Liu, Jingqi and Yang, Siqi and Shi, Boxin and Wang, Xinlong},
  journal={arXiv preprint arXiv:2512.10571},
  year={2025}
}
```

## License

The repository declares the Apache License 2.0. Users are responsible for verifying that their intended use also complies with any rights and restrictions applicable to the underlying media.