fix(api): add logging along SDXL custom VAE codepath
This commit is contained in:
parent
51f0806c4a
commit
ddd3d45b79
|
@ -65,8 +65,10 @@ def convert_diffusion_diffusers_xl(
|
||||||
if replace_vae is not None:
|
if replace_vae is not None:
|
||||||
vae_path = path.join(conversion.model_path, replace_vae)
|
vae_path = path.join(conversion.model_path, replace_vae)
|
||||||
if check_ext(replace_vae, RESOLVE_FORMATS):
|
if check_ext(replace_vae, RESOLVE_FORMATS):
|
||||||
|
logger.debug("loading VAE from single tensor file: %s", vae_path)
|
||||||
pipeline.vae = AutoencoderKL.from_single_file(vae_path)
|
pipeline.vae = AutoencoderKL.from_single_file(vae_path)
|
||||||
else:
|
else:
|
||||||
|
logger.debug("loading pretrained VAE from path: %s", vae_path)
|
||||||
pipeline.vae = AutoencoderKL.from_pretrained(vae_path)
|
pipeline.vae = AutoencoderKL.from_pretrained(vae_path)
|
||||||
|
|
||||||
if path.exists(temp_path):
|
if path.exists(temp_path):
|
||||||
|
|
Loading…
Reference in New Issue