From a0004ede2789db873bd08a7dc30bd50f21bdc33e Mon Sep 17 00:00:00 2001 From: luchenhan Date: Sat, 4 Jan 2025 18:27:54 +0800 Subject: [PATCH] chore: remove redundant word in comment Signed-off-by: luchenhan --- invokeai/app/services/invocation_cache/invocation_cache_base.py | 2 +- invokeai/backend/stable_diffusion/diffusers_pipeline.py | 2 +- .../listenerMiddleware/listeners/imageDeletionListeners.ts | 2 +- .../controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/services/invocation_cache/invocation_cache_base.py b/invokeai/app/services/invocation_cache/invocation_cache_base.py index bde6a0f1146..dd235262b2c 100644 --- a/invokeai/app/services/invocation_cache/invocation_cache_base.py +++ b/invokeai/app/services/invocation_cache/invocation_cache_base.py @@ -54,7 +54,7 @@ def disable(self) -> None: @abstractmethod def enable(self) -> None: - """Enables the cache, letting the the max cache size take effect""" + """Enables the cache, letting the max cache size take effect""" pass @abstractmethod diff --git a/invokeai/backend/stable_diffusion/diffusers_pipeline.py b/invokeai/backend/stable_diffusion/diffusers_pipeline.py index e5d4393faf6..af65644e54b 100644 --- a/invokeai/backend/stable_diffusion/diffusers_pipeline.py +++ b/invokeai/backend/stable_diffusion/diffusers_pipeline.py @@ -503,7 +503,7 @@ def step( for idx, tensor in enumerate(accum_adapter_state): # The tensor size is supposed to be some integer downscale factor of the latents size. # Internally, the unet will pad the latents before downscaling between levels when it is no longer divisible by its downscale factor. - # If the latent size does not scale down evenly, we need to pad the tensor so that it matches the the downscaled padded latents later on. + # If the latent size does not scale down evenly, we need to pad the tensor so that it matches the downscaled padded latents later on. scale_factor = latents.size()[-1] // tensor.size()[-1] required_padding_width = math.ceil(latents.size()[-1] / scale_factor) - tensor.size()[-1] required_padding_height = math.ceil(latents.size()[-2] / scale_factor) - tensor.size()[-2] diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeletionListeners.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeletionListeners.ts index 68d7595bd9a..643d9186fc2 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeletionListeners.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeletionListeners.ts @@ -158,7 +158,7 @@ export const addImageDeletionListeners = (startAppListening: AppStartListening) const queryArgs = selectListImagesQueryArgs(state); const { data } = imagesApi.endpoints.listImages.select(queryArgs)(state); if (data) { - // When we delete multiple images, we clear the selection. Then, the the next time we load images, we will + // When we delete multiple images, we clear the selection. Then, the next time we load images, we will // select the first one. This is handled below in the listener for `imagesApi.endpoints.listImages.matchFulfilled`. dispatch(imageSelected(null)); } diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts index 110e74f5b48..ab2e6ec9225 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts @@ -803,7 +803,7 @@ export class CanvasEntityTransformer extends CanvasModuleBase { this.$isTransforming.set(false); - // Reset the transform of the the entity. We've either replaced the transformed objects with a rasterized image, or + // Reset the transform of the entity. We've either replaced the transformed objects with a rasterized image, or // canceled a transformation. In either case, the scale should be reset. this.resetTransform(); this.syncInteractionState();