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,
|
torch_dtype=dtype,
|
||||||
use_auth_token=conversion.token,
|
use_auth_token=conversion.token,
|
||||||
).to(device)
|
).to(device)
|
||||||
elif path.isfile(source):
|
else:
|
||||||
if conversion.extract:
|
if conversion.extract:
|
||||||
logger.debug("extracting SD checkpoint to Torch models: %s", source)
|
logger.debug("extracting SD checkpoint to Torch models: %s", source)
|
||||||
torch_source = convert_extract_checkpoint(
|
torch_source = convert_extract_checkpoint(
|
||||||
|
|
Loading…
Reference in New Issue