Skip to content

Commit

Permalink
fix(api): skip loading custom VAE after torch extraction (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed May 27, 2023
1 parent 3adafea commit 00b1bec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/onnx_web/convert/diffusion/diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ def convert_diffusion_diffusers(
torch_source,
torch_dtype=dtype,
).to(device)

# VAE replacement already happened during extraction, skip
replace_vae = None
else:
logger.debug("loading pipeline from SD checkpoint: %s", source)
pipeline = download_from_original_stable_diffusion_ckpt(
Expand Down

0 comments on commit 00b1bec

Please sign in to comment.