Ashoka74 commited on
Commit
b315299
ยท
verified ยท
1 Parent(s): e764aa6

Update app_merged.py

Browse files
Files changed (1) hide show
  1. app_merged.py +9 -3
app_merged.py CHANGED
@@ -152,14 +152,20 @@ hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors
152
  hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders")
153
  t5_path = hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders/t5")
154
 
 
 
 
 
 
 
 
155
  fill_pipe = FluxFillPipeline.from_pretrained(
156
- "black-forest-labs/FLUX.1-Fill-dev",
157
- torch_dtype=torch.bfloat16
158
  ).to("cuda")
159
 
160
 
161
 
162
-
163
  sd15_name = 'stablediffusionapi/realistic-vision-v51'
164
  tokenizer = CLIPTokenizer.from_pretrained(sd15_name, subfolder="tokenizer")
165
  text_encoder = CLIPTextModel.from_pretrained(sd15_name, subfolder="text_encoder")
 
152
  hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders")
153
  t5_path = hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders/t5")
154
 
155
+ # fill_pipe = FluxFillPipeline.from_pretrained(
156
+ # "black-forest-labs/FLUX.1-Fill-dev",
157
+ # torch_dtype=torch.bfloat16
158
+ # ).to("cuda")
159
+
160
+
161
+
162
  fill_pipe = FluxFillPipeline.from_pretrained(
163
+ "YarvixPA/FLUX.1-Fill-dev-gguf",
164
+ gguf_file="flux1-fill-dev-Q5_K_S.gguf"
165
  ).to("cuda")
166
 
167
 
168
 
 
169
  sd15_name = 'stablediffusionapi/realistic-vision-v51'
170
  tokenizer = CLIPTokenizer.from_pretrained(sd15_name, subfolder="tokenizer")
171
  text_encoder = CLIPTextModel.from_pretrained(sd15_name, subfolder="text_encoder")