Changed text_encoders dir
This commit is contained in:
@@ -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
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user