Changed text_encoders dir

This commit is contained in:
LucipherDev
2025-01-09 15:09:32 +05:30
parent 9df5b2f004
commit 7255b5c4bc
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -29,13 +29,13 @@ python install.py
## Usage
**If you installed from the ComfyUI-Manager, all the necessary models should be automatically downloaded into the `models/tangoflux` folder.**
**If you installed from the ComfyUI-Manager, all the necessary models should be automatically downloaded into the `models/tangoflux` and `models/text_encoders` folders.**
**Otherwise they will be automatically downloaded when the LoadAniDoc node is used for the first time.**
**Manual Download:**
- 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)
- Download text encoders from [here](https://huggingface.co/google/flan-t5-large/tree/main) and put everything in `models/tangoflux/text_encoders/google-flan-t5-large`
- Download text encoders from [here](https://huggingface.co/google/flan-t5-large/tree/main) and put everything in `models/text_encoders/google-flan-t5-large` (make sure to include the config files)
The nodes can be found in "TangoFlux" category as `TangoFluxDocLoader`, `TangoFluxSampler`, `TangoFluxVAEDecodeAndPlay`.
+1 -1
View File
@@ -13,7 +13,7 @@ download_models = True
try:
import folder_paths
TANGOFLUX_DIR = os.path.join(folder_paths.models_dir, "tangoflux")
TEXT_ENCODER_DIR = os.path.join(TANGOFLUX_DIR, "text_encoders")
TEXT_ENCODER_DIR = os.path.join(folder_paths.models_dir, "text_encoders")
except:
download_models = False
log.info("Not called by ComfyUI Manager. Models will not be downloaded")
+1 -1
View File
@@ -25,7 +25,7 @@ folder_paths.folder_names_and_paths["tangoflux"] = (
current_paths,
folder_paths.supported_pt_extensions,
)
TEXT_ENCODER_DIR = os.path.join(TANGOFLUX_DIR, "text_encoders")
TEXT_ENCODER_DIR = os.path.join(folder_paths.models_dir, "text_encoders")
class TangoFluxLoader:
@classmethod