Skip to content

Commit

Permalink
fix(api): correct name of torch extraction var
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 3, 2023
1 parent a19bf06 commit 4810ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/diffusion/diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def convert_diffusion_diffusers(
use_auth_token=conversion.token,
).to(device)
elif path.exists(source) and path.isfile(source):
if conversion.extract_torch:
if conversion.extract:
logger.debug("extracting SD checkpoint to Torch models: %s", source)
torch_source = convert_extract_checkpoint(
conversion,
Expand Down

0 comments on commit 4810ca8

Please sign in to comment.