Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,9 +197,6 @@ DEFAULT_CHECKPOINT_FILENAME = "ltx-2-19b-dev.safetensors"
|
|
| 197 |
DEFAULT_DISTILLED_LORA_FILENAME = "ltx-2-19b-distilled-lora-384.safetensors"
|
| 198 |
DEFAULT_SPATIAL_UPSAMPLER_FILENAME = "ltx-2-spatial-upscaler-x2-1.0.safetensors"
|
| 199 |
|
| 200 |
-
# Text encoder space URL
|
| 201 |
-
TEXT_ENCODER_SPACE = "linoyts/gemma-text-encoder"
|
| 202 |
-
|
| 203 |
def get_hub_or_local_checkpoint(repo_id: Optional[str] = None, filename: Optional[str] = None):
|
| 204 |
"""Download from HuggingFace Hub or use local checkpoint."""
|
| 205 |
if repo_id is None and filename is None:
|
|
@@ -230,7 +227,7 @@ print(f"Initializing pipeline with:")
|
|
| 230 |
print(f" checkpoint_path={checkpoint_path}")
|
| 231 |
print(f" distilled_lora_path={distilled_lora_path}")
|
| 232 |
print(f" spatial_upsampler_path={spatial_upsampler_path}")
|
| 233 |
-
|
| 234 |
|
| 235 |
# Load distilled LoRA as a regular LoRA
|
| 236 |
loras = [
|
|
|
|
| 197 |
DEFAULT_DISTILLED_LORA_FILENAME = "ltx-2-19b-distilled-lora-384.safetensors"
|
| 198 |
DEFAULT_SPATIAL_UPSAMPLER_FILENAME = "ltx-2-spatial-upscaler-x2-1.0.safetensors"
|
| 199 |
|
|
|
|
|
|
|
|
|
|
| 200 |
def get_hub_or_local_checkpoint(repo_id: Optional[str] = None, filename: Optional[str] = None):
|
| 201 |
"""Download from HuggingFace Hub or use local checkpoint."""
|
| 202 |
if repo_id is None and filename is None:
|
|
|
|
| 227 |
print(f" checkpoint_path={checkpoint_path}")
|
| 228 |
print(f" distilled_lora_path={distilled_lora_path}")
|
| 229 |
print(f" spatial_upsampler_path={spatial_upsampler_path}")
|
| 230 |
+
|
| 231 |
|
| 232 |
# Load distilled LoRA as a regular LoRA
|
| 233 |
loras = [
|