Skip to content

Commit

Permalink
chore: remove redundant word in comment
Browse files Browse the repository at this point in the history
Signed-off-by: luchenhan <[email protected]>
  • Loading branch information
luchenhan authored and psychedelicious committed Jan 15, 2025
1 parent b57aa06 commit 2b340fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion invokeai/backend/stable_diffusion/diffusers_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion invokeai/frontend/web/src/services/api/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7005,7 +7005,7 @@ export type components = {
cfg_scale?: number | number[];
/**
* CFG Scale Start Step
* @description Index of the first step to apply cfg_scale. Negative indices count backwards from the the last step (e.g. a value of -1 refers to the final step).
* @description Index of the first step to apply cfg_scale. Negative indices count backwards from the last step (e.g. a value of -1 refers to the final step).
* @default 0
*/
cfg_scale_start_step?: number;
Expand Down

0 comments on commit 2b340fa

Please sign in to comment.