Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev",
|
|
41 |
local_dir=os.path.join(models_dir, "vae"))
|
42 |
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev",
|
43 |
filename="flux1-dev.safetensors",
|
44 |
-
local_dir=os.path.join(models_dir, "
|
45 |
hf_hub_download(repo_id="google/siglip-so400m-patch14-384",
|
46 |
filename="model.safetensors",
|
47 |
local_dir=os.path.join(models_dir, "clip_vision"))
|
@@ -91,7 +91,7 @@ with torch.inference_mode():
|
|
91 |
# UNET
|
92 |
unetloader = NODE_CLASS_MAPPINGS["UNETLoader"]()
|
93 |
UNET_MODEL = unetloader.load_unet(
|
94 |
-
unet_name="flux1-dev.
|
95 |
weight_dtype="fp8_e4m3fn"
|
96 |
)
|
97 |
|
|
|
41 |
local_dir=os.path.join(models_dir, "vae"))
|
42 |
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev",
|
43 |
filename="flux1-dev.safetensors",
|
44 |
+
local_dir=os.path.join(models_dir, "unet"))
|
45 |
hf_hub_download(repo_id="google/siglip-so400m-patch14-384",
|
46 |
filename="model.safetensors",
|
47 |
local_dir=os.path.join(models_dir, "clip_vision"))
|
|
|
91 |
# UNET
|
92 |
unetloader = NODE_CLASS_MAPPINGS["UNETLoader"]()
|
93 |
UNET_MODEL = unetloader.load_unet(
|
94 |
+
unet_name="flux1-dev.safetensors",
|
95 |
weight_dtype="fp8_e4m3fn"
|
96 |
)
|
97 |
|