Spaces:
Runtime error
Runtime error
Update app_merged.py
Browse files- app_merged.py +8 -13
app_merged.py
CHANGED
@@ -95,6 +95,14 @@ transform_image = transforms.Compose(
|
|
95 |
]
|
96 |
)
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
# Load
|
99 |
|
100 |
# Model paths
|
@@ -151,19 +159,6 @@ hf_hub_download(repo_id="Kijai/DepthAnythingV2-safetensors", filename="depth_any
|
|
151 |
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors", local_dir="models/vae/FLUX1")
|
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 |
-
hf_hub_download(repo_id="YarvixPA/FLUX.1-Fill-dev-gguf", filename="flux1-fill-dev-Q5_K_S.gguf", local_dir="models/")
|
155 |
-
|
156 |
-
|
157 |
-
# fill_pipe = FluxFillPipeline.from_pretrained(
|
158 |
-
# "black-forest-labs/FLUX.1-Fill-dev",
|
159 |
-
# torch_dtype=torch.bfloat16
|
160 |
-
# ).to("cuda")
|
161 |
-
|
162 |
-
|
163 |
-
# fill_pipe = FluxFillPipeline.from_pretrained(
|
164 |
-
# "YarvixPA/FLUX.1-Fill-dev-gguf",
|
165 |
-
# gguf_file="flux1-fill-dev-Q5_K_S.gguf"
|
166 |
-
# ).to("cuda")
|
167 |
|
168 |
|
169 |
|
|
|
95 |
]
|
96 |
)
|
97 |
|
98 |
+
hf_hub_download(repo_id="YarvixPA/FLUX.1-Fill-dev-gguf", filename="flux1-fill-dev-Q5_K_S.gguf", local_dir="models/")
|
99 |
+
|
100 |
+
|
101 |
+
fill_pipe = FluxFillPipeline.from_single_file(
|
102 |
+
"./models/FLUX.1-Fill-dev-gguf", torch_dtype=torch.bfloat16
|
103 |
+
).to("cuda")
|
104 |
+
|
105 |
+
|
106 |
# Load
|
107 |
|
108 |
# Model paths
|
|
|
159 |
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors", local_dir="models/vae/FLUX1")
|
160 |
hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders")
|
161 |
t5_path = hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders/t5")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
|
164 |
|