Commit 8d1cdcee authored by hungchiayu1's avatar hungchiayu1
Browse files

updates

parent 3da106a6
__pycache__/ ~__pycache__/
*.py[cod] *.py[cod]
*$py.class *$py.class
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -29,6 +29,16 @@ TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (Di ...@@ -29,6 +29,16 @@ TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (Di
## Training TangoFlux ## Training TangoFlux
## Inference with TangoFlux ## Inference with TangoFlux
Download the TangoFlux model and generate audio from a text prompt:
```import torchaudio
from tangoflux import TangoFluxInference
from IPython.display import Audio
model = TangoFluxInference(name='declare-lab/TangoFlux')
audio = model.generate('Hammer slowly hitting the wooden table', steps=50, duration=10)
Audio(data=audio, rate=44100)
```
## Evaluation Scripts ## Evaluation Scripts
......
...@@ -9,7 +9,7 @@ from diffusers.training_utils import compute_density_for_timestep_sampling ...@@ -9,7 +9,7 @@ from diffusers.training_utils import compute_density_for_timestep_sampling
import copy import copy
import torch.nn.functional as F import torch.nn.functional as F
import numpy as np import numpy as np
from model import TangoFlux from src.model import TangoFlux
from huggingface_hub import snapshot_download from huggingface_hub import snapshot_download
from tqdm import tqdm from tqdm import tqdm
from typing import Optional,Union,List from typing import Optional,Union,List
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment