Skip to content

Commit

Permalink
fix(api): make sure all file types are covered (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 15, 2023
1 parent 2a641b1 commit 95d8f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/diffusion/diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def convert_diffusion_diffusers(
torch_dtype=dtype,
use_auth_token=conversion.token,
).to(device)
elif path.isfile(source):
else:
if conversion.extract:
logger.debug("extracting SD checkpoint to Torch models: %s", source)
torch_source = convert_extract_checkpoint(
Expand Down

0 comments on commit 95d8f4a

Please sign in to comment.