Skip to content

Commit

Permalink
convert preview vae
Browse files Browse the repository at this point in the history
  • Loading branch information
painebenjamin committed Jan 19, 2024
1 parent dcbbc03 commit ffd763d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/enfugue/diffusion/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4385,7 +4385,7 @@ def get_vae_preview(self, use_xl: bool) -> AutoencoderTiny:
AutoencoderTiny._dict_from_json_file(vae_config)
)
vae_model.load_state_dict(load_state_dict(path), strict=False)
return vae_model.to(self.device)
return vae_model.to(device=self.device, dtype=self.dtype)

def get_scheduler_class(
self,
Expand Down

0 comments on commit ffd763d

Please sign in to comment.