Improve model card for SelVA: Add pipeline tag, links, abstract, and sample usage

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +112 -25
README.md CHANGED
@@ -1,25 +1,112 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- tags:
4
- - video-to-audio generation
5
- - selective sound generation
6
- - multimodal deep learning
7
- ---
8
-
9
- # SelVA: Hear What Matters! Text-conditioned Selective Video-to-Audio Generation
10
-
11
- [![arXiv](https://img.shields.io/badge/arXiv-2512.xxxxx-brightgreen.svg?style=flat-square)]() [![githubio](https://img.shields.io/badge/GitHub.io-Demo_page-blue?logo=Github&style=flat-square)](https://jnwnlee.github.io/selva-demo/) [![githubio](https://img.shields.io/badge/GitHub-Code-blue?logo=Github&style=flat-square)](https://jnwnlee.github.io/selva/)
12
-
13
-
14
-
15
- ```bash
16
- .
17
- ├── weights/
18
- │ ├── video_enc_sup_5.pth # text-conditioned video encoder
19
- │ └── generator_small_16k_sup_5.pth # v2a generator
20
- └── ext_weights/
21
- ├── synchformer_state_dict.pth # pretrained Synchformer (24-01-04T16-39-21)
22
- ├── best_netG.pt # BigVGAN vocoder
23
- ├── v1-16.pth # vae 16kHz
24
- └── v1-44.pth # vae 44kHz
25
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ tags:
4
+ - video-to-audio generation
5
+ - selective sound generation
6
+ - multimodal deep learning
7
+ pipeline_tag: other
8
+ ---
9
+
10
+ # SelVA: Hear What Matters! Text-conditioned Selective Video-to-Audio Generation
11
+
12
+ Official PyTorch implementation of "Hear What Matters! Text-conditioned Selective Video-to-Audio Generation". This model was presented in the paper [Hear What Matters! Text-conditioned Selective Video-to-Audio Generation](https://huggingface.co/papers/2512.02650).
13
+
14
+ [![arXiv](https://img.shields.io/badge/arXiv-2512.02650-brightgreen.svg?style=flat-square)](https://arxiv.org/abs/2512.02650) [![Hugging Face Paper](https://img.shields.io/badge/HF_Paper-2512.02650-orange.svg?style=flat-square)](https://huggingface.co/papers/2512.02650) [![Project Page](https://img.shields.io/badge/GitHub.io-Demo_page-blue?logo=Github&style=flat-square)](https://jnwnlee.github.io/selva-demo/) [![GitHub Code](https://img.shields.io/badge/GitHub-Code-blue?logo=Github&style=flat-square)](https://github.com/jnwnlee/SelVA) [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue)](https://huggingface.co/jnwnlee/SelVA)
15
+
16
+ ## Abstract
17
+ This work introduces a new task, text-conditioned selective video-to-audio (V2A) generation, which produces only the user-intended sound from a multi-object video. We propose SelVA, a novel text-conditioned V2A model that treats the text prompt as an explicit selector of target source and modulates a video encoder to distinctly extract prompt-relevant video features. SelVA further employs a self-augmentation scheme to overcome the lack of mono audio track supervision. We evaluate SelVA on VGG-MONOAUDIO, a curated benchmark of clean single-source videos for such a task, demonstrating its effectiveness across audio quality, semantic alignment, and temporal synchronization.
18
+
19
+ ## Method Overview
20
+ <table>
21
+ <tr>
22
+ <td><img src="https://github.com/jnwnlee/SelVA/blob/main/docs/images/model.png" alt="SelVA" width="400"/></td>
23
+ <td><a href="https://www.youtube.com/watch?v=eUocr6iEyiM">
24
+ <img src="https://img.youtube.com/vi/eUocr6iEyiM/0.jpg" alt="SelVA Demo Video" width="400"/>
25
+ </a></td>
26
+ </tr>
27
+ </table>
28
+
29
+ ## Installation
30
+
31
+ ### Prerequisites
32
+ We assume using [miniforge](https://github.com/conda-forge/miniforge) environment.
33
+
34
+ - Python 3.9+
35
+ - PyTorch **2.6.0+** and corresponding torchvision/torchaudio (pick your CUDA version https://pytorch.org/, pip install recommended)
36
+
37
+ **1. Install prerequisite:**
38
+
39
+ ```bash
40
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade
41
+ conda install ffmpeg=6.1.0 x264 -c conda-forge # optional
42
+ ```
43
+
44
+ (Or any other CUDA versions that your GPUs/driver support)
45
+
46
+ **2. Clone our repository:**
47
+
48
+ ```bash
49
+ git clone https://github.com/jnwnlee/SelVA.git
50
+ ```
51
+
52
+ **3. Install with pip:**
53
+
54
+ ```bash
55
+ cd SelVA
56
+ pip install -e .
57
+ ```
58
+
59
+ (If you encounter the File "setup.py" not found error, upgrade your pip with `pip install --upgrade pip`)
60
+
61
+ **Pretrained models:**
62
+
63
+ The models will be downloaded automatically when you run the demo script. MD5 checksums are provided in `selva/utils/download_utils.py`.
64
+ The models are also available at https://huggingface.co/jnwnlee/SelVA/tree/main
65
+ Refer to [MODELS.md](https://github.com/jnwnlee/SelVA/blob/main/docs/MODELS.md) for further details.
66
+
67
+ ## Demo
68
+
69
+ By default, these scripts use the `small_16k` model.
70
+ In our experiments, inference only takes around 4GB of GPU memory (in 16-bit mode).
71
+
72
+ ```bash
73
+ python demo.py --duration=8 --video=<path to video> --prompt "your prompt"
74
+ ```
75
+
76
+ The output (audio in `.flac` format, and video in `.mp4` format) will be saved in `./output`.
77
+ See the file for more options.
78
+ The default output (and training) duration is 8 seconds. Longer/shorter durations could also work, but a large deviation from the training duration may result in a lower quality.
79
+
80
+ ## Training
81
+ See [TRAINING.md](https://github.com/jnwnlee/SelVA/blob/main/docs/TRAINING.md). (TBA)
82
+
83
+ ## Inference and Evaluation
84
+ See [EVAL.md](https://github.com/jnwnlee/SelVA/blob/main/docs/EVAL.md).
85
+
86
+ ## Training Datasets
87
+ SelVA was trained on [VGGSound](https://www.robots.ox.ac.uk/~vgg/data/vggsound/).
88
+ Pretrained Synchformer was trained on [AudioSet](https://research.google.com/audioset/).
89
+ Pretrained MMAudio was trained on several datasets, including [AudioSet](https://research.google.com/audioset/), [Freesound](https://github.com/LAION-AI/audio-dataset/blob/main/laion-audio-630k/README.md), [VGGSound](https://www.robots.ox.ac.uk/~vgg/data/vggsound/), [AudioCaps](https://audiocaps.github.io/), and [WavCaps](https://github.com/XinhaoMei/WavCaps).
90
+ These datasets are subject to specific licenses, which can be accessed on their respective websites. Please follow the corresponding licenses and guidelines at usage.
91
+
92
+ ## Citation
93
+ ```bibtex
94
+ @inproceedings{selva,
95
+ title={Hear What Matters! Text-conditioned Selective Video-to-Audio Generation},
96
+ author={},
97
+ booktitle={},
98
+ year={2025}
99
+ }
100
+ ```
101
+
102
+ ## Relevant Repositories
103
+ - [av-benchmark](https://github.com/hkchengrex/av-benchmark) for benchmarking results.
104
+ - [kadtk](https://github.com/YoonjinXD/kadtk) for KAD calculation.
105
+
106
+ ## Acknowledgement
107
+ We sincerely thank the authors for open-sourcing the following repos:
108
+ - [MMAudio](https://github.com/hkchengrex/MMAudio)
109
+ - [Synchformer](https://github.com/v-iashin/Synchformer)
110
+ - [Make-An-Audio 2](https://github.com/bytedance/Make-An-Audio-2) for the 16kHz BigVGAN pretrained model and the VAE architecture
111
+ - [BigVGAN](https://github.com/NVIDIA/BigVGAN)
112
+ - [EDM2](https://github.com/NVlabs/edm2) for the magnitude-preserving network architecture