Skip to content

Commit

Permalink
Fix IdealSizeInvocation (#6145)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPhoto authored Apr 4, 2024
1 parent d284e05 commit 3659219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invokeai/app/invocations/latent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def trim_to_multiple_of(self, *args: int, multiple_of: int = LATENT_SCALE_FACTOR
return tuple((x - x % multiple_of) for x in args)

def invoke(self, context: InvocationContext) -> IdealSizeOutput:
unet_config = context.models.get_config(**self.unet.unet.model_dump())
unet_config = context.models.get_config(self.unet.unet.key)
aspect = self.width / self.height
dimension: float = 512
if unet_config.base == BaseModelType.StableDiffusion2:
Expand Down

0 comments on commit 3659219

Please sign in to comment.