mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixed problem with inpainting after controlnet support added to main.
Problem was that controlnet support involved adding **kwargs to method calls down in denoising loop, and AddsMaskLatents didn't accept **kwarg arg. So just changed to accept and pass on **kwargs.
This commit is contained in:
parent
070218aba7
commit
b1b94a3d56
@ -75,10 +75,10 @@ class AddsMaskLatents:
|
|||||||
initial_image_latents: torch.Tensor
|
initial_image_latents: torch.Tensor
|
||||||
|
|
||||||
def __call__(
|
def __call__(
|
||||||
self, latents: torch.Tensor, t: torch.Tensor, text_embeddings: torch.Tensor
|
self, latents: torch.Tensor, t: torch.Tensor, text_embeddings: torch.Tensor, **kwargs,
|
||||||
) -> torch.Tensor:
|
) -> torch.Tensor:
|
||||||
model_input = self.add_mask_channels(latents)
|
model_input = self.add_mask_channels(latents)
|
||||||
return self.forward(model_input, t, text_embeddings)
|
return self.forward(model_input, t, text_embeddings, **kwargs)
|
||||||
|
|
||||||
def add_mask_channels(self, latents):
|
def add_mask_channels(self, latents):
|
||||||
batch_size = latents.size(0)
|
batch_size = latents.size(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user