Skip to content

Commit f300ed3

Browse files
sanchit-gandhikashif
authored andcommitted
[AudioLDM2] Second round of fixes (huggingface#1435)
1 parent 66c5348 commit f300ed3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

audioldm2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this blog post, we showcase how to use AudioLDM 2 in the Hugging Face 🧨 Di
2626
optimisations such as half-precision, flash attention, and compilation, and model optimisations such as scheduler choice
2727
and negative prompting, to reduce the inference time by over **10 times**, with minimal degradation in quality of the
2828
output audio. The blog post is also accompanied by a more streamlined [Colab notebook](https://colab.research.google.com/github/sanchit-gandhi/notebooks/blob/main/AudioLDM-2.ipynb),
29-
that contains all the code but fewer explanations
29+
that contains all the code but fewer explanations.
3030

3131
Read to the end to find out how to generate a 10 second audio sample in just 1 second!
3232

@@ -353,7 +353,7 @@ audio = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=20, ge
353353

354354
**Output:**
355355
```
356-
100%|███████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 49.14it/s]
356+
100%|███████████████████████████████████████████| 20/20 [00:00<00:00, 49.14it/s]
357357
```
358358

359359
That took less than **1 second** to generate the audio! Let's have a listen to the resulting generation:
@@ -438,7 +438,7 @@ audio = pipe(prompt, negative_prompt=negative_prompt, num_waveforms_per_prompt=4
438438

439439
**Output:**
440440
```
441-
100%|███████████████████████████████████████████████████████████████████████████████████| 20/20 [00:36<00:00, 1.82s/it]
441+
100%|███████████████████████████████████████████| 20/20 [00:36<00:00, 1.82s/it]
442442
```
443443

444444
And with that, we can generate four samples, each of 150 seconds in duration, all in one call to the pipeline! Using the

0 commit comments

Comments
 (0)