Any-to-Any
Diffusers
Safetensors
dorni commited on
Commit
fcc91bf
·
verified ·
1 Parent(s): ed06316

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/images/303.jpg filter=lfs diff=lfs merge=lfs -text
37
+ assets/images/321.jpg filter=lfs diff=lfs merge=lfs -text
38
+ assets/logo.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,108 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: other
4
+ library_name: diffusers
5
+ ---
6
+ <div align="center">
7
+ <img src=assets/logo.png width="30%"/>
8
+ </div>
9
+
10
+ # UniVerse-1: Unified Audio-Video Generation via Stitching of Experts.
11
+
12
+ <div align="center">
13
+ <a href="https://huggingface.co/dorni/UniVerse-1-Base"><img src="https://img.shields.io/static/v1?label=UniVerse-1&message=HuggingFace&color=yellow"></a> &ensp;
14
+ <a href="https://huggingface.co/datasets/dorni/Verse-Bench"><img src="https://img.shields.io/static/v1?label=Verse-Bench&message=HuggingFace&color=yellow"></a>
15
+ </div>
16
+ <div align="center">
17
+ <a href="https://dorniwang.github.io/UniVerse-1"><img src="https://img.shields.io/static/v1?label=Project&message=Page&color=green"></a> &ensp;
18
+ <a href="https://arxiv.org/abs/2507.16632"><img src="assets/arxiv.svg"></a> &ensp;
19
+ <a href="https://github.com/stepfun-ai/Step-Audio2/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-blue?&color=blue"/></a>
20
+ </div>
21
+
22
+ This is official inference code of UniVerse-1
23
+
24
+ ## 🔥🔥🔥 News!!
25
+ <!-- * Sep 03, 2025: 👋 We release the # TODO -->
26
+ <!-- * Sep 08, 2025: 👋 We release Verse-Bench metric tools, [Verse-Bench tools](https://github.com/Dorniwang/Verse-Bench).
27
+ * Sep 05, 2025: 👋 We release Verse-Bench datasets, [Verse-Bench Dataset](https://huggingface.co/datasets/dorni/Verse-Bench).
28
+ * Sep 05, 2025: 👋 We release model weights of [UniVerse-1](https://huggingface.co/dorni/UniVerse-1).
29
+ * Sep 05, 2025: 👋 We release the technical report of [UniVerse-1](https://arxiv.org/pdf/2507.16632). -->
30
+ * Sep 03, 2025: 👋 We release the project page of [UniVerse-1](https://dorniwang.github.io/UniVerse-1).
31
+
32
+
33
+ ## Introduction
34
+
35
+ UniVerse-1 is a unified, Veo-3-like model that simultaneously generates synchronized audio and video from a reference image and a text prompt.
36
+
37
+ - **Unified Audio-Video synthesis**: Features the fascinating ability to generate audio and video in tandem. It interprets the input prompt to produce a perfectly synchronized audio-visual output.
38
+
39
+ - **Speech audio generation**: The model can generate fluent speech directly from a text prompt, demonstrating a built-in text-to-speech (TTS) ability. Crucially, it tailors the voice timbre to match the specific character being generated.
40
+
41
+ - **Musical instrument playing sound generation**: The model is also highly proficient at creating sounds of musical instruments. Additionally, it offers some capability for "singing while playing," generating both vocal and instrumental tracks concurrently.
42
+
43
+ - **Ambient sound generation**: The model can generate ambient sounds, producing background audio that matches the visual environment of the video.
44
+
45
+ - **The first open-sourced Dit-based Audio-Video joint method**: We are the first to open-source a DiT-based, Veo-3-like model for joint audio-visual generation.
46
+
47
+ ## Model Download
48
+ | Models | 🤗 Hugging Face |
49
+ |-------|-------|
50
+ | UniVerse-1 Base | [UniVerse-1](https://huggingface.co/dorni/UniVerse-1) |
51
+
52
+ download our pretrained model into ./checkpoints/UniVerse-1-base/
53
+
54
+ ## Model Usage
55
+ ### 🔧 Dependencies and Installation
56
+ - Python >= 3.10
57
+ - [PyTorch >= 2.5.0-cu121](https://pytorch.org/)
58
+ - [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads)
59
+ - Dependent models:
60
+ - [Wan-AI/Wan2.1-T2V-1.3B-Diffusers](https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B-Diffusers), download into ./huggingfaces/Wan-AI/Wan2.1-T2V-1.3B-Diffusers/
61
+ - [ACE-Step/ACE-Step-v1-3.5B](https://huggingface.co/ACE-Step/ACE-Step-v1-3.5B), download into ./huggingfaces/ACE-Step/ACE-Step-v1-3.5B/
62
+
63
+ ```bash
64
+ conda create -n universe python=3.10
65
+ conda activate universe
66
+ pip install torch==2.5.0 torchaudio==2.5.0 torchvision --index-url https://download.pytorch.org/whl/cu121
67
+ pip install packaging ninja && pip install flash-attn==2.7.0.post2 --no-build-isolation
68
+ pip install -r requirements-lint.txt
69
+ pip install -e .
70
+
71
+ git clone https://github.com/Dorniwang/UniVerse-1-code/
72
+ cd UniVerse-1-code
73
+ ```
74
+
75
+ ### 🚀 Inference Scripts
76
+
77
+ ```bash
78
+ bash scipts/inference/inference_universe.sh
79
+ ```
80
+
81
+ ## Acknowledgements
82
+
83
+ Part of the code for this project comes from:
84
+ * [FastVideo](https://github.com/hao-ai-lab/FastVideo)
85
+ * [diffusers](https://github.com/huggingface/diffusers/tree/v0.33.1)
86
+ * [Wan2.1](https://github.com/huggingface/diffusers/blob/v0.33.1/src/diffusers/models/transformers/transformer_wan.py)
87
+ * [Ace-step](https://github.com/ace-step/ACE-Step)
88
+
89
+ Thank you to all the open-source projects for their contributions to this project!
90
+
91
+ ## License
92
+
93
+ The code in the repository is licensed under [Apache 2.0](LICENSE) License.
94
+
95
+ ## Citation
96
+
97
+ ```
98
+ @misc{wang2025universe-1,
99
+ title={UniVerse-1:A Unified Audio-Video Generation Framework via Stitching of Expertise},
100
+ author={Wang, Duomin and Zuo, wei and Li, Aojie and Chen, Ling-Hao and Liao, Xinyao and Zhou, Deyu and Yin, Zixin and Dai, Xili and Jinag Daxin, Yu, Gang},
101
+ journal={arxiv},
102
+ year={2025}
103
+ }
104
+ ```
105
+
106
+ ## Star History
107
+
108
+ [![Star History Chart](https://api.star-history.com/svg?repos=Dorniwang/UniVerse-1-code&type=Date)](https://star-history.com/#Dorniwang/UniVerse-1-code&Date)
assets/arxiv.svg ADDED
assets/images/303.jpg ADDED

Git LFS Details

  • SHA256: b46e9f6c3c6b33c849e9c173c2701f7b5a36b298d955b3f1a374c46b0dda7ba5
  • Pointer size: 131 Bytes
  • Size of remote file: 172 kB
assets/images/321.jpg ADDED

Git LFS Details

  • SHA256: 979f444421f78618a1d06d7dffac9867249e0e13e014bdc5d830c6c7e7dff30f
  • Pointer size: 131 Bytes
  • Size of remote file: 151 kB
assets/logo.png ADDED

Git LFS Details

  • SHA256: 117021ca7dd92d36d31f51c8c9ccbab9d87a7073deee3b9572087f660f41a04b
  • Pointer size: 131 Bytes
  • Size of remote file: 299 kB
assets/prompts/303.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "video_prompt": "A man in a dark suit and white shirt is seated on a yellow couch, speaking about the language of Americans. He uses hand gestures to emphasize his points, and the background shows a cityscape with illuminated buildings, suggesting an urban setting, possibly a studio with a city view.",
3
+ "audio_prompt": [
4
+ ""
5
+ ],
6
+ "speech_prompt": {
7
+ "speaker": "Man",
8
+ "text": "The thing about Americans that I've thought about the language is that they speak, they say they speak English."
9
+ }
10
+ }
assets/prompts/321.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "video_prompt": "A young boy is sitting on a couch, playing an acoustic guitar and singing a song. The room is cozy with a beige couch, a window with blinds, and a wooden floor. The boy is wearing a dark blue t-shirt and patterned shorts with animal prints. He strums the guitar and sings, his facial expressions changing as he sings. The background music is a guitar and singing.",
3
+ "audio_prompt": [
4
+ "Guitar music, singing"
5
+ ],
6
+ "speech_prompt": {
7
+ "speaker": "Young boy",
8
+ "text": "You make me happy when the clouds are gray"
9
+ }
10
+ }
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "patch_size": [
3
+ 1,
4
+ 2,
5
+ 2
6
+ ],
7
+ "num_attention_heads": 12,
8
+ "attention_head_dim": 128,
9
+ "in_channels": 16,
10
+ "out_channels": 16,
11
+ "text_dim": 4096,
12
+ "freq_dim": 256,
13
+ "ffn_dim": 8960,
14
+ "num_layers": 30,
15
+ "cross_attn_norm": true,
16
+ "qk_norm": "rms_norm_across_heads",
17
+ "eps": 1e-06,
18
+ "image_dim": null,
19
+ "mel_dim": null,
20
+ "added_kv_proj_dim": 1536,
21
+ "context_pre_only": true,
22
+ "rope_max_seq_len": 1024,
23
+ "rope_max_seq_len_text": 2048,
24
+ "mel_num_attention_heads": 20,
25
+ "mel_in_channels": 8,
26
+ "mlp_ratio": 2.5,
27
+ "mel_out_channels": 8,
28
+ "max_position": 32768,
29
+ "rope_theta": 1000000.0,
30
+ "speaker_embedding_dim": 512,
31
+ "text_embedding_dim": 768,
32
+ "ssl_encoder_depths": [
33
+ 12,
34
+ 12
35
+ ],
36
+ "ssl_names": [
37
+ "mert",
38
+ "m-hubert"
39
+ ],
40
+ "ssl_latent_dims": [
41
+ 1024,
42
+ 768
43
+ ],
44
+ "lyric_encoder_vocab_size": 6693,
45
+ "lyric_hidden_size": 1024,
46
+ "mel_patch_size": [
47
+ 16,
48
+ 1
49
+ ],
50
+ "max_height": 16,
51
+ "max_width": 32768,
52
+ "max_speech_token_num": 128,
53
+ "_use_default_values": [
54
+ "mel_dim"
55
+ ],
56
+ "_class_name": "WanTransformer3DModel",
57
+ "_diffusers_version": "0.33.0.dev0"
58
+ }
diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65bd65d64a1c8290593a09b09f2f2ad5e216f858b657a03a7d23bbc9b373718b
3
+ size 28200239296