Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
ed56a3e
1
Parent(s):
9cf9f30
22
Browse files
README.md
CHANGED
|
@@ -12,7 +12,8 @@ short_description: Supports Canny, HED, Depth, Pose and MLSD
|
|
| 12 |
models:
|
| 13 |
- Tongyi-MAI/Z-Image-Turbo
|
| 14 |
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union
|
| 15 |
-
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 12 |
models:
|
| 13 |
- Tongyi-MAI/Z-Image-Turbo
|
| 14 |
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union
|
| 15 |
+
preload_from_hub:
|
| 16 |
+
- alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union
|
| 17 |
---
|
| 18 |
|
| 19 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -57,7 +57,11 @@ text_encoder = Qwen3ForCausalLM.from_pretrained(
|
|
| 57 |
MODEL_LOCAL, subfolder="text_encoder", torch_dtype=weight_dtype,
|
| 58 |
low_cpu_mem_usage=False,
|
| 59 |
)
|
| 60 |
-
scheduler = FlowMatchEulerDiscreteScheduler(num_train_timesteps=1000, shift=3)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
pipe = ZImageControlPipeline(
|
| 62 |
vae=vae,
|
| 63 |
tokenizer=tokenizer,
|
|
|
|
| 57 |
MODEL_LOCAL, subfolder="text_encoder", torch_dtype=weight_dtype,
|
| 58 |
low_cpu_mem_usage=False,
|
| 59 |
)
|
| 60 |
+
# scheduler = FlowMatchEulerDiscreteScheduler(num_train_timesteps=1000, shift=3)
|
| 61 |
+
scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(
|
| 62 |
+
MODEL_LOCAL,
|
| 63 |
+
subfolder="scheduler"
|
| 64 |
+
)
|
| 65 |
pipe = ZImageControlPipeline(
|
| 66 |
vae=vae,
|
| 67 |
tokenizer=tokenizer,
|