K00B404 commited on
Commit
e40e5f1
·
verified ·
1 Parent(s): 6709f9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -35,7 +35,7 @@ import torch
35
  from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig
36
 
37
  ckpt_path = (
38
- "https://huggingface.co/city96/FLUX.1-dev-gguf/blob/main/flux1-schnell-Q3_K_S.gguf"
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-dev",
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