Skip to content

Commit 9c54679

Browse files
committed
Fix install
1 parent 3e6ec2c commit 9c54679

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ python install.py
2929

3030
## Usage
3131

32-
**If you installed from the ComfyUI-Manager, all the necessary models should be automatically downloaded into the `models/tangoflux` and `models/text_encoders` folders.**
32+
**All the necessary models should be automatically downloaded when the TangoFluxLoader node is used for the first time.**
3333

34-
**Otherwise they will be automatically downloaded when the TangoFluxLoader node is used for the first time.**
34+
**Models can also be downloaded using the `install.py` script**
3535

3636
**Manual Download:**
3737
- Download TangoFlux from [here](https://huggingface.co/declare-lab/TangoFlux/tree/main) and put everything in `models/tangoflux` (make sure to include the config files)

install.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@
1010

1111
download_models = True
1212

13+
EXT_PATH = os.path.dirname(os.path.abspath(__file__))
14+
1315
try:
16+
folder_paths_path = os.path.abspath(os.path.join(EXT_PATH, "..", "..", "folder_paths.py"))
17+
18+
sys.path.append(os.path.dirname(folder_paths_path))
19+
1420
import folder_paths
21+
1522
TANGOFLUX_DIR = os.path.join(folder_paths.models_dir, "tangoflux")
1623
TEXT_ENCODER_DIR = os.path.join(folder_paths.models_dir, "text_encoders")
1724
except:
1825
download_models = False
19-
log.info("Not called by ComfyUI Manager. Models will not be downloaded")
20-
21-
EXT_PATH = os.path.dirname(os.path.abspath(__file__))
2226

2327
try:
2428
log.info(f"Installing requirements")

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-tangoflux"
33
description = "ComfyUI Custom Nodes for 'TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching'. This generates high-quality 44.1kHz audio up to 30 seconds using just a text prompt."
4-
version = "1.0.1"
4+
version = "1.0.2"
55
license = {file = "LICENSE"}
66
dependencies = ["torch", "torchaudio", "transformers", "diffusers", "accelerate", "tqdm"]
77

requirements.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
torch
21
torchaudio
3-
transformers
42
diffusers
53
accelerate
6-
tqdm
7-
4+
tqdm

0 commit comments

Comments
 (0)