Fix typing of timesteps and init_timestep.

This commit is contained in:
Ryan Dick 2024-06-12 15:11:24 -04:00
parent c2cf1137e9
commit 3aef717ef4
2 changed files with 2 additions and 2 deletions

View File

@ -601,7 +601,7 @@ class DenoiseLatentsInvocation(BaseInvocation):
denoising_start: float,
denoising_end: float,
seed: int,
) -> Tuple[List[int], int, Dict[str, Any]]:
) -> Tuple[torch.Tensor, torch.Tensor, Dict[str, Any]]:
assert isinstance(scheduler, ConfigMixin)
if scheduler.config.get("cpu_only", False):
scheduler.set_timesteps(steps, device="cpu")

View File

@ -360,7 +360,7 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
def generate_latents_from_embeddings(
self,
latents: torch.Tensor,
timesteps,
timesteps: torch.Tensor,
conditioning_data: TextConditioningData,
scheduler_step_kwargs: dict[str, Any],
callback: Callable[[PipelineIntermediateState], None],