Commit ·
534d59c
1
Parent(s): e81cc3b
Add HF Space metadata to README.md
Browse files
README.md
CHANGED
|
@@ -1,132 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/triton99/TARO">
|
| 18 |
-
</p>
|
| 19 |
-
|
| 20 |
-
## 📣 News
|
| 21 |
-
- **[09/2025]**: Training & Inference code released.
|
| 22 |
-
- **[06/2025]**: TARO accepted to ICCV 2025 🎉.
|
| 23 |
-
- **[04/2024]**: Paper uploaded to arXiv. Check out the manuscript [here](https://arxiv.org/abs/2504.05684).(https://arxiv.org/abs/2504.05684).
|
| 24 |
-
|
| 25 |
-
## To-Dos
|
| 26 |
-
- [x] Release model weights on Google Drive.
|
| 27 |
-
- [x] Release inference code
|
| 28 |
-
- [x] Release training code & dataset preparation
|
| 29 |
-
|
| 30 |
-
## ⚙️ Environmental Setups
|
| 31 |
-
1. Clone TARO.
|
| 32 |
-
```bash
|
| 33 |
-
git clone https://github.com/triton99/TARO
|
| 34 |
-
cd TARO
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
2. Create the environment.
|
| 38 |
-
```bash
|
| 39 |
-
conda create -n taro python==3.10
|
| 40 |
-
conda activate taro
|
| 41 |
-
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121
|
| 42 |
-
|
| 43 |
-
# Training
|
| 44 |
-
pip install --force pip==24.0
|
| 45 |
-
git clone https://github.com/pytorch/fairseq
|
| 46 |
-
cd fairseq
|
| 47 |
-
pip install --editable ./ --no-build-isolation
|
| 48 |
-
cd ..
|
| 49 |
-
|
| 50 |
-
git clone https://github.com/cwx-worst-one/EAT.git
|
| 51 |
-
|
| 52 |
-
# Inference
|
| 53 |
-
pip3 install -r requirements.txt
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
## 📁 Data Preparations
|
| 57 |
-
Please download the [VGGSound dataset](https://www.robots.ox.ac.uk/~vgg/data/vggsound/), extract the videos, and organize them into two folders: one with .mp4 files and one with corresponding .wav files (matching base filenames).
|
| 58 |
-
|
| 59 |
-
Update the path variables at the top of the preprocessing scripts to point to your folders, then run:
|
| 60 |
-
```bash
|
| 61 |
-
./preprocess_video.sh
|
| 62 |
-
|
| 63 |
-
./preprocess_audio.sh
|
| 64 |
-
```
|
| 65 |
-
|
| 66 |
-
After processing, the data will have the following structure:
|
| 67 |
-
```bash
|
| 68 |
-
VGGSound/train
|
| 69 |
-
├── videos
|
| 70 |
-
│ ├── abc.mp4
|
| 71 |
-
│ └── ...
|
| 72 |
-
├── audios
|
| 73 |
-
│ ├── abc.wav
|
| 74 |
-
│ └── ...
|
| 75 |
-
├── cavp_feats
|
| 76 |
-
│ ├── abc.npz
|
| 77 |
-
│ └── ...
|
| 78 |
-
├── onset_feats
|
| 79 |
-
│ ├── abc.npz
|
| 80 |
-
│ └── ...
|
| 81 |
-
├── melspec
|
| 82 |
-
│ ├── abc.npy
|
| 83 |
-
│ └── ...
|
| 84 |
-
└── fbank
|
| 85 |
-
│ ├── abc.npy
|
| 86 |
-
│ └── ...
|
| 87 |
-
```
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
## 🚀 Getting Started
|
| 91 |
-
|
| 92 |
-
### Download Checkpoints
|
| 93 |
-
|
| 94 |
-
The pretrained TARO checkpoint can be downloaded on [Google Drive](https://drive.google.com/drive/folders/1YqLsEtVYeSchhAh-wKS-BWuB6MK6_mJB?usp=sharing).
|
| 95 |
-
|
| 96 |
-
The CAVP checkpoint can be downloaded from [Diff-Foley](https://github.com/luosiallen/Diff-Foley).
|
| 97 |
-
|
| 98 |
-
The onset checkpoint can be downloaded from [SyncFusion](https://github.com/mcomunita/syncfusion).
|
| 99 |
-
|
| 100 |
-
### Training
|
| 101 |
-
```bash
|
| 102 |
-
./train.sh
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
### Inference
|
| 106 |
-
To run the inference code, you can use the following command:
|
| 107 |
-
```bash
|
| 108 |
-
python infer.py \
|
| 109 |
-
--video_path ./test.mp4 \
|
| 110 |
-
--save_folder_path ./output \
|
| 111 |
-
--cavp_config_path ./cavp/model/cavp.yaml \
|
| 112 |
-
--cavp_ckpt_path ./cavp_epoch66.ckpt \
|
| 113 |
-
--onset_ckpt_path ./onset_model.ckpt \
|
| 114 |
-
--model_ckpt_path ./taro_ckpt.pt
|
| 115 |
-
```
|
| 116 |
-
|
| 117 |
-
## 📖 Citing TARO
|
| 118 |
-
|
| 119 |
-
If you find our repository useful, please consider giving it a star ⭐ and citing our paper in your work:
|
| 120 |
-
|
| 121 |
-
```bibtex
|
| 122 |
-
@inproceedings{ton2025taro,
|
| 123 |
-
title = {TARO: Timestep-Adaptive Representation Alignment with Onset-Aware Conditioning for Synchronized Video-to-Audio Synthesis},
|
| 124 |
-
author = {Ton, Tri and Hong, Ji Woo and Yoo, Chang D},
|
| 125 |
-
year = {2025},
|
| 126 |
-
booktitle = {International Conference on Computer Vision (ICCV)},
|
| 127 |
-
}
|
| 128 |
-
```
|
| 129 |
-
|
| 130 |
-
## 🤗 Acknowledgements
|
| 131 |
-
|
| 132 |
-
Our code is based on [REPA](https://github.com/sihyun-yu/REPA), [Diff-Foley](https://github.com/luosiallen/Diff-Foley), and [SyncFusion](https://github.com/mcomunita/syncfusion). We thank the authors for their excellent work!
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: TARO
|
| 3 |
+
emoji: 🎬
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.20.1
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: Video-to-Audio Synthesis with TARO (ICCV 2025)
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# TARO: Video-to-Audio Synthesis
|
| 15 |
+
|
| 16 |
+
Upload a video and generate synchronized audio using TARO (ICCV 2025).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|