fix(api): make sure all file types are covered (#432)
This commit is contained in:
parent
2a641b111e
commit
95d8f4a598
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue