Skip to content

Commit

Permalink
none check for vae external weight path
Browse files Browse the repository at this point in the history
  • Loading branch information
saienduri authored Jul 23, 2024
1 parent 32fc090 commit a6b777f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/turbine_models/custom_models/sd_inference/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def export_vae_model(
if dtype == torch.float16:
vae_model = vae_model.half()
mapper = {}
if not os.path.exists(external_weight_path):
if (external_weight_path is not None) and (not os.path.exists(external_weight_path)):
utils.save_external_weights(
mapper,
vae_model,
Expand Down

0 comments on commit a6b777f

Please sign in to comment.