Python
fixed wan & ltx2 autodownload text encoder
DeepBeepMeepe1fba370f8f8
diff --git a/models/ltx2/ltx2_handler.py b/models/ltx2/ltx2_handler.pyindex 64cec00..1b56d3a 100644--- a/models/ltx2/ltx2_handler.py+++ b/models/ltx2/ltx2_handler.py@@ -2,7 +2,7 @@ import osimport torchfrom shared.utils import files_locator as fl-+_GEMMA_FOLDER_URL = "https://huggingface.co/DeepBeepMeep/LTX-2/resolve/main/gemma-3-12b-it-qat-q4_0-unquantized/"_GEMMA_FOLDER = "gemma-3-12b-it-qat-q4_0-unquantized"_GEMMA_FILENAME = f"{_GEMMA_FOLDER}.safetensors"_GEMMA_QUANTO_FILENAME = f"{_GEMMA_FOLDER}_quanto_bf16_int8.safetensors"@@ -72,7 +72,7 @@ class family_handler:extra_model_def = {"text_encoder_folder": _GEMMA_FOLDER,- "text_encoder_URLs": [_GEMMA_FILENAME, _GEMMA_QUANTO_FILENAME],+ "text_encoder_URLs": [ _GEMMA_FOLDER_URL + _GEMMA_FILENAME, _GEMMA_FOLDER_URL + _GEMMA_QUANTO_FILENAME],"dtype": "bf16","fps": 24,"frames_minimum": 17,diff --git a/models/wan/wan_handler.py b/models/wan/wan_handler.pyindex be3bdc7..8b2f11e 100644--- a/models/wan/wan_handler.py+++ b/models/wan/wan_handler.py@@ -195,7 +195,7 @@ class family_handler():if "URLs2" in model_def:extra_model_def["no_steps_skipping"] = Trueextra_model_def["compile"] = ["transformer","transformer2"]- extra_model_def["text_encoder_URLs"] = ["models_t5_umt5-xxl-enc-bf16.safetensors", "models_t5_umt5-xxl-enc-quanto_int8.safetensors"]+ extra_model_def["text_encoder_URLs"] = ["https://huggingface.co/DeepBeepMeep/Wan2.1/resolve/main/umt5-xxl/models_t5_umt5-xxl-enc-bf16.safetensors", "https://huggingface.co/DeepBeepMeep/Wan2.1/resolve/main/umt5-xxl/models_t5_umt5-xxl-enc-quanto_int8.safetensors"]extra_model_def["text_encoder_folder"] = "umt5-xxl"extra_model_def["i2v_class"] = i2v = test_class_i2v(base_model_type)extra_model_def["t2v_class"] = t2v = test_class_t2v(base_model_type)