mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix return type of prepare_noise_and_latents(...).
This commit is contained in:
parent
3d49541c09
commit
020e8eb413
@ -668,7 +668,7 @@ class DenoiseLatentsInvocation(BaseInvocation):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def prepare_noise_and_latents(
|
def prepare_noise_and_latents(
|
||||||
context: InvocationContext, noise_field: LatentsField | None, latents_field: LatentsField | None
|
context: InvocationContext, noise_field: LatentsField | None, latents_field: LatentsField | None
|
||||||
) -> Tuple[float, torch.Tensor | None, torch.Tensor]:
|
) -> Tuple[int, torch.Tensor | None, torch.Tensor]:
|
||||||
noise = None
|
noise = None
|
||||||
if noise_field is not None:
|
if noise_field is not None:
|
||||||
noise = context.tensors.load(noise_field.latents_name)
|
noise = context.tensors.load(noise_field.latents_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user