Skip to content

Commit 3659219

Browse files
authored
Fix IdealSizeInvocation (#6145)
1 parent d284e05 commit 3659219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/app/invocations/latent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def trim_to_multiple_of(self, *args: int, multiple_of: int = LATENT_SCALE_FACTOR
12541254
return tuple((x - x % multiple_of) for x in args)
12551255

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

0 commit comments

Comments
 (0)