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
e6f81486
Unverified
Commit
e6f81486
authored
Dec 31, 2024
by
Chia-Yu Hung
Committed by
GitHub
Dec 31, 2024
Browse files
Update README.md
parent
8d1cdcee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
README.md
README.md
+4
-1
No files found.
README.md
View file @
e6f81486
...
@@ -31,11 +31,14 @@ TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (Di
...
@@ -31,11 +31,14 @@ TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (Di
## Inference with TangoFlux
## Inference with TangoFlux
Download the TangoFlux model and generate audio from a text prompt:
Download the TangoFlux model and generate audio from a text prompt:
```
import torchaudio
```
python
import
torchaudio
from
tangoflux
import
TangoFluxInference
from
tangoflux
import
TangoFluxInference
from
IPython.display
import
Audio
from
IPython.display
import
Audio
model
=
TangoFluxInference
(
name
=
'declare-lab/TangoFlux'
)
model
=
TangoFluxInference
(
name
=
'declare-lab/TangoFlux'
)
audio
=
model
.
generate
(
'Hammer slowly hitting the wooden table'
,
steps
=
50
,
duration
=
10
)
audio
=
model
.
generate
(
'Hammer slowly hitting the wooden table'
,
steps
=
50
,
duration
=
10
)
Audio
(
data
=
audio
,
rate
=
44100
)
Audio
(
data
=
audio
,
rate
=
44100
)
```
```
...
...
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