Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ import torch
|
|
35 |
from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig
|
36 |
|
37 |
ckpt_path = (
|
38 |
-
"https://huggingface.co/
|
39 |
)
|
40 |
transformer = FluxTransformer2DModel.from_single_file(
|
41 |
ckpt_path,
|
@@ -43,12 +43,12 @@ transformer = FluxTransformer2DModel.from_single_file(
|
|
43 |
torch_dtype=torch.bfloat16,
|
44 |
)
|
45 |
pipe = FluxPipeline.from_pretrained(
|
46 |
-
"black-forest-labs/FLUX.1-
|
47 |
transformer=transformer,
|
48 |
torch_dtype=torch.bfloat16,
|
49 |
)
|
50 |
-
|
51 |
-
pipe = FluxPipeline.from_pretrained("flux1-schnell-Q3_K_S.gguf")
|
52 |
pipe.load_lora_weights(hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors"))
|
53 |
pipe.fuse_lora(lora_scale=0.125)
|
54 |
|
|
|
35 |
from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig
|
36 |
|
37 |
ckpt_path = (
|
38 |
+
"https://huggingface.co/martintomov/Hyper-FLUX.1-dev-gguf/resolve/main/hyper-flux-16step-Q3_K_M.gguf"
|
39 |
)
|
40 |
transformer = FluxTransformer2DModel.from_single_file(
|
41 |
ckpt_path,
|
|
|
43 |
torch_dtype=torch.bfloat16,
|
44 |
)
|
45 |
pipe = FluxPipeline.from_pretrained(
|
46 |
+
"black-forest-labs/FLUX.1-schnell",
|
47 |
transformer=transformer,
|
48 |
torch_dtype=torch.bfloat16,
|
49 |
)
|
50 |
+
# https://huggingface.co/martintomov/Hyper-FLUX.1-dev-gguf/resolve/main/hyper-flux-16step-Q3_K_M.gguf
|
51 |
+
#pipe = FluxPipeline.from_pretrained("flux1-schnell-Q3_K_S.gguf")
|
52 |
pipe.load_lora_weights(hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors"))
|
53 |
pipe.fuse_lora(lora_scale=0.125)
|
54 |
|