Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
cc512e6
1
Parent(s):
c3ab1c4
debugging app.py
Browse files
app.py
CHANGED
|
@@ -142,12 +142,11 @@ def create_app():
|
|
| 142 |
blended_attn_procs = {}
|
| 143 |
for name, _ in pipe.transformer.attn_processors.items():
|
| 144 |
if "single" in name:
|
| 145 |
-
blended_attn_procs[name] = FluxBlendedAttnProcessor2_0(3072, ba_scale=scale, num_ref=1)
|
| 146 |
else:
|
| 147 |
blended_attn_procs[name] = pipe.transformer.attn_processors[name]
|
| 148 |
|
| 149 |
pipe.transformer.set_attn_processor(blended_attn_procs)
|
| 150 |
-
pipe.to(dtype)
|
| 151 |
|
| 152 |
model_path = hf_hub_download(
|
| 153 |
repo_id="WonwoongCho/IT-Blender",
|
|
|
|
| 142 |
blended_attn_procs = {}
|
| 143 |
for name, _ in pipe.transformer.attn_processors.items():
|
| 144 |
if "single" in name:
|
| 145 |
+
blended_attn_procs[name] = FluxBlendedAttnProcessor2_0(3072, ba_scale=scale, num_ref=1).to(device="cuda", dtype=dtype)
|
| 146 |
else:
|
| 147 |
blended_attn_procs[name] = pipe.transformer.attn_processors[name]
|
| 148 |
|
| 149 |
pipe.transformer.set_attn_processor(blended_attn_procs)
|
|
|
|
| 150 |
|
| 151 |
model_path = hf_hub_download(
|
| 152 |
repo_id="WonwoongCho/IT-Blender",
|