cvssp / audioldm-s-full-v2

huggingface.co
Total runs: 3.1K
24-hour runs: 0
7-day runs: 253
30-day runs: 1.2K
Model's Last Updated: April 16 2024

Introduction of audioldm-s-full-v2

Model Details of audioldm-s-full-v2

AudioLDM

AudioLDM is a latent text-to-audio diffusion model capable of generating realistic audio samples given any text input. It is available in the 🧨 Diffusers library from v0.15.0 onwards.

Model Details

AudioLDM was proposed in the paper AudioLDM: Text-to-Audio Generation with Latent Diffusion Models by Haohe Liu et al.

Inspired by Stable Diffusion , AudioLDM is a text-to-audio latent diffusion model (LDM) that learns continuous audio representations from CLAP latents. AudioLDM takes a text prompt as input and predicts the corresponding audio. It can generate text-conditional sound effects, human speech and music.

Checkpoint Details

This is the small v2 version of the AudioLDM model, which is the same size as the original AudioLDM small checkpoint, but trained for more steps. The four AudioLDM checkpoints are summarised below:

Table 1: Summary of the AudioLDM checkpoints.

Checkpoint Training Steps Audio conditioning CLAP audio dim UNet dim Params
audioldm-s-full 1.5M No 768 128 421M
audioldm-s-full-v2 > 1.5M No 768 128 421M
audioldm-m-full 1.5M Yes 1024 192 652M
audioldm-l-full 1.5M No 768 256 975M
Model Sources

Usage

First, install the required packages:

pip install --upgrade diffusers transformers accelerate
Text-to-Audio

For text-to-audio generation, the AudioLDMPipeline can be used to load pre-trained weights and generate text-conditional audio outputs:

from diffusers import AudioLDMPipeline
import torch

repo_id = "cvssp/audioldm-s-full-v2"
pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "Techno music with a strong, upbeat tempo and high melodic riffs"
audio = pipe(prompt, num_inference_steps=10, audio_length_in_s=5.0).audios[0]

The resulting audio output can be saved as a .wav file:

import scipy

scipy.io.wavfile.write("techno.wav", rate=16000, data=audio)

Or displayed in a Jupyter Notebook / Google Colab:

from IPython.display import Audio

Audio(audio, rate=16000)
Tips

Prompts:

  • Descriptive prompt inputs work best: you can use adjectives to describe the sound (e.g. "high quality" or "clear") and make the prompt context specific (e.g., "water stream in a forest" instead of "stream").
  • It's best to use general terms like 'cat' or 'dog' instead of specific names or abstract objects that the model may not be familiar with.

Inference:

  • The quality of the predicted audio sample can be controlled by the num_inference_steps argument: higher steps give higher quality audio at the expense of slower inference.
  • The length of the predicted audio sample can be controlled by varying the audio_length_in_s argument.

Citation

BibTeX:

@article{liu2023audioldm,
  title={AudioLDM: Text-to-Audio Generation with Latent Diffusion Models},
  author={Liu, Haohe and Chen, Zehua and Yuan, Yi and Mei, Xinhao and Liu, Xubo and Mandic, Danilo and Wang, Wenwu and Plumbley, Mark D},
  journal={arXiv preprint arXiv:2301.12503},
  year={2023}
}

Runs of cvssp audioldm-s-full-v2 on huggingface.co

3.1K
Total runs
0
24-hour runs
88
3-day runs
253
7-day runs
1.2K
30-day runs

More Information About audioldm-s-full-v2 huggingface.co Model

More audioldm-s-full-v2 license Visit here:

https://choosealicense.com/licenses/cc-by-nc-sa-4.0

audioldm-s-full-v2 huggingface.co

audioldm-s-full-v2 huggingface.co is an AI model on huggingface.co that provides audioldm-s-full-v2's model effect (), which can be used instantly with this cvssp audioldm-s-full-v2 model. huggingface.co supports a free trial of the audioldm-s-full-v2 model, and also provides paid use of the audioldm-s-full-v2. Support call audioldm-s-full-v2 model through api, including Node.js, Python, http.

audioldm-s-full-v2 huggingface.co Url

https://huggingface.co/cvssp/audioldm-s-full-v2

cvssp audioldm-s-full-v2 online free

audioldm-s-full-v2 huggingface.co is an online trial and call api platform, which integrates audioldm-s-full-v2's modeling effects, including api services, and provides a free online trial of audioldm-s-full-v2, you can try audioldm-s-full-v2 online for free by clicking the link below.

cvssp audioldm-s-full-v2 online free url in huggingface.co:

https://huggingface.co/cvssp/audioldm-s-full-v2

audioldm-s-full-v2 install

audioldm-s-full-v2 is an open source model from GitHub that offers a free installation service, and any user can find audioldm-s-full-v2 on GitHub to install. At the same time, huggingface.co provides the effect of audioldm-s-full-v2 install, users can directly use audioldm-s-full-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

audioldm-s-full-v2 install url in huggingface.co:

https://huggingface.co/cvssp/audioldm-s-full-v2

Url of audioldm-s-full-v2

audioldm-s-full-v2 huggingface.co Url

Provider of audioldm-s-full-v2 huggingface.co

cvssp
ORGANIZATIONS

Other API from cvssp

huggingface.co

Total runs: 31.7K
Run Growth: 16.3K
Growth Rate: 51.75%
Updated:April 16 2024
huggingface.co

Total runs: 1.7K
Run Growth: -6.3K
Growth Rate: -366.24%
Updated:April 16 2024
huggingface.co

Total runs: 271
Run Growth: 22
Growth Rate: 8.06%
Updated:April 16 2024