We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3ff6ba commit b98710fCopy full SHA for b98710f
1 file changed
api/app.py
@@ -297,7 +297,7 @@ def inference(all_inputs: dict) -> dict:
297
storage.download_and_extract(path)
298
print("Load attn_procs " + attn_procs)
299
# Workaround https://github.com/huggingface/diffusers/pull/2448#issuecomment-1453938119
300
- if not re.match(r".safetensors", attn_procs):
+ if storage and not re.match(r".safetensors", attn_procs):
301
attn_procs = torch.load(attn_procs, map_location="cpu")
302
pipeline.unet.load_attn_procs(attn_procs)
303
else:
0 commit comments