Skip to content

Commit

Permalink
feat(api): replace legacy SD converter with optimum-based one by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 24, 2023
1 parent a5a60d3 commit 9a077fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/convert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"img2img": convert_diffusion_diffusers,
"img2img-sdxl": convert_diffusion_diffusers_xl,
"inpaint": convert_diffusion_diffusers,
"txt2img": convert_diffusion_diffusers,
"txt2img-optimum": convert_diffusion_diffusers_optimum,
"txt2img": convert_diffusion_diffusers_optimum,
"txt2img-legacy": convert_diffusion_diffusers,
"txt2img-sdxl": convert_diffusion_diffusers_xl,
}

Expand Down
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 @@ -818,7 +818,7 @@ def convert_diffusion_diffusers_optimum(
logger.debug("loading VAE from single tensor file: %s", vae_path)
pipeline.vae = AutoencoderKL.from_single_file(vae_path)
else:
logger.debug("loading VAE from single tensor file: %s", vae_path)
logger.debug("loading pretrained VAE from path: %s", replace_vae)
pipeline.vae = AutoencoderKL.from_pretrained(replace_vae)

if is_torch_2_0:
Expand Down

0 comments on commit 9a077fa

Please sign in to comment.