Add custom vae support using --custom_vae flag

-- This commit adds custom vae support to SD wherein the user can
   point to a model's checkpoint file whose Vae needs to be plugged
   into the main model.

Signed-off-by: Abhishek Varma <abhishek@nod-labs.com>
This commit is contained in:
Abhishek Varma
2023-02-08 17:50:10 +00:00
committed by Abhishek Varma
parent 24af983cfb
commit 9c13f1e635
4 changed files with 22 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ def txt2img_inf(
args.import_mlir,
args.hf_model_id,
args.ckpt_loc,
args.custom_vae,
args.precision,
args.max_length,
args.batch_size,
@@ -283,6 +284,7 @@ if __name__ == "__main__":
args.import_mlir,
args.hf_model_id,
args.ckpt_loc,
args.custom_vae,
args.precision,
args.max_length,
args.batch_size,