Skip to content

Commit

Permalink
Vae weight path none check (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
saienduri authored Jul 21, 2024
1 parent 2e9de46 commit aa0ac2b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ def __init__(
self.scheduler_device = self.map["unet"]["device"]
self.scheduler_driver = self.map["unet"]["driver"]
self.scheduler_target = self.map["unet"]["target"]
self.map["vae"]["export_args"]["external_weight_path"] = vae_weight_path
if vae_weight_path is not None:
self.map["vae"]["export_args"]["external_weight_path"] = vae_weight_path
elif not self.is_sd3:
self.tokenizer = CLIPTokenizer.from_pretrained(
self.base_model_name, subfolder="tokenizer"
Expand Down

0 comments on commit aa0ac2b

Please sign in to comment.