[SD] Update need_vae_encode correctly

Signed-Off-by: Gaurav Shukla <gaurav@nod-labs.com>
This commit is contained in:
Gaurav Shukla
2023-02-21 19:39:05 +05:30
parent 4233218629
commit 16168ab6b3
2 changed files with 3 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ def txt2img_inf(
args.iree_vulkan_target_triple = ""
args.use_tuned = True
args.import_mlir = False
args.img_path = ""
args.img_path = None
set_init_device_flags()
model_id = (
args.hf_model_id

View File

@@ -334,6 +334,8 @@ class SharkifyStableDiffusionModel:
if args.hf_model_id == "":
sys.exit("Base model configuration for the custom model is missing. Use `--clear_all` and re-run.")
print("Loaded vmfbs from cache and successfully fetched base model configuration.")
if not need_vae_encode:
return vmfbs[:3]
return vmfbs
# Step 2: