Skip to content

Commit b98710f

Browse files
committed
fix(attn_procs): apply workaround only for storage not hf repos
1 parent f3ff6ba commit b98710f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def inference(all_inputs: dict) -> dict:
297297
storage.download_and_extract(path)
298298
print("Load attn_procs " + attn_procs)
299299
# Workaround https://github.com/huggingface/diffusers/pull/2448#issuecomment-1453938119
300-
if not re.match(r".safetensors", attn_procs):
300+
if storage and not re.match(r".safetensors", attn_procs):
301301
attn_procs = torch.load(attn_procs, map_location="cpu")
302302
pipeline.unet.load_attn_procs(attn_procs)
303303
else:

0 commit comments

Comments
 (0)