Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nuomanzz
TangoFlux
Commits
18ee767d
Unverified
Commit
18ee767d
authored
Dec 31, 2024
by
Chia-Yu Hung
Committed by
GitHub
Dec 31, 2024
Browse files
Update README.md
parent
e6f81486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
18ee767d
...
...
@@ -30,7 +30,7 @@ TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (Di
## Inference with TangoFlux
Download the TangoFlux model and generate audio from a text prompt:
TangoFlux can generate audio up to 30seconds through passing in a duration variable in model.generate function.
```
python
import
torchaudio
from
tangoflux
import
TangoFluxInference
...
...
@@ -41,7 +41,7 @@ audio = model.generate('Hammer slowly hitting the wooden table', steps=50, durat
Audio
(
data
=
audio
,
rate
=
44100
)
```
Our evaluation shows that inferencing with 50 steps yield the best results, which takes about 3seconds. For faster inference, consider setting steps to 25 that yield similar audio quality.
## Evaluation Scripts
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment