diff --git a/invokeai/app/invocations/sdxl.py b/invokeai/app/invocations/sdxl.py index 249e864799..3b4d3a9d86 100644 --- a/invokeai/app/invocations/sdxl.py +++ b/invokeai/app/invocations/sdxl.py @@ -463,8 +463,8 @@ class SDXLLatentsToLatentsInvocation(BaseInvocation): unet: UNetField = Field(default=None, description="UNet submodel") latents: Optional[LatentsField] = Field(description="Initial latents") - denoising_start: float = Field(default=0.0, ge=0, lt=1, description="") - denoising_end: float = Field(default=1.0, gt=0, le=1, description="") + denoising_start: float = Field(default=0.0, ge=0, le=1, description="") + denoising_end: float = Field(default=1.0, ge=0, le=1, description="") #control: Union[ControlField, list[ControlField]] = Field(default=None, description="The control to use") #seamless: bool = Field(default=False, description="Whether or not to generate an image that can tile without seams", ) @@ -549,7 +549,7 @@ class SDXLLatentsToLatentsInvocation(BaseInvocation): num_inference_steps = num_inference_steps - t_start # apply noise(if provided) - if self.noise is not None: + if self.noise is not None and timesteps.shape[0] > 0: noise = context.services.latents.get(self.noise.latents_name) latents = scheduler.add_noise(latents, noise, timesteps[:1]) del noise diff --git a/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLImg2ImgDenoisingStrength.tsx b/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLImg2ImgDenoisingStrength.tsx index ff9750dbeb..c448e0ba8e 100644 --- a/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLImg2ImgDenoisingStrength.tsx +++ b/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLImg2ImgDenoisingStrength.tsx @@ -37,8 +37,8 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {