Skip to content

Commit f2f4efc

Browse files
authored
Fix typos
1 parent 5151cff commit f2f4efc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

comfy/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __init__(self, hook_type: EnumHookType=None, hook_ref: _HookRef=None, hook_i
9393
self.hook_scope = hook_scope
9494
'''Scope of where this hook should apply in terms of the conds used in sampling run.'''
9595
self.custom_should_register = default_should_register
96-
'''Can be overriden with a compatible function to decide if this hook should be registered without the need to override .should_register'''
96+
'''Can be overridden with a compatible function to decide if this hook should be registered without the need to override .should_register'''
9797

9898
@property
9999
def strength(self):

comfy/ldm/modules/diffusionmodules/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def make_ddim_sampling_parameters(alphacums, ddim_timesteps, eta, verbose=True):
140140
alphas = alphacums[ddim_timesteps]
141141
alphas_prev = np.asarray([alphacums[0]] + alphacums[ddim_timesteps[:-1]].tolist())
142142

143-
# according the the formula provided in https://arxiv.org/abs/2010.02502
143+
# according to the formula provided in https://arxiv.org/abs/2010.02502
144144
sigmas = eta * np.sqrt((1 - alphas_prev) / (1 - alphas) * (1 - alphas / alphas_prev))
145145
if verbose:
146146
logging.info(f'Selected alphas for ddim sampler: a_t: {alphas}; a_(t-1): {alphas_prev}')

comfy_api/latest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ComfyExtension(ABC):
8080
async def on_load(self) -> None:
8181
"""
8282
Called when an extension is loaded.
83-
This should be used to initialize any global resources neeeded by the extension.
83+
This should be used to initialize any global resources needed by the extension.
8484
"""
8585

8686
@abstractmethod

comfy_extras/nodes_flux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def execute(cls, conditioning) -> io.NodeOutput:
101101
append = execute # TODO: remove
102102

103103

104-
PREFERED_KONTEXT_RESOLUTIONS = [
104+
PREFERRED_KONTEXT_RESOLUTIONS = [
105105
(672, 1568),
106106
(688, 1504),
107107
(720, 1456),
@@ -142,7 +142,7 @@ def execute(cls, image) -> io.NodeOutput:
142142
width = image.shape[2]
143143
height = image.shape[1]
144144
aspect_ratio = width / height
145-
_, width, height = min((abs(aspect_ratio - w / h), w, h) for w, h in PREFERED_KONTEXT_RESOLUTIONS)
145+
_, width, height = min((abs(aspect_ratio - w / h), w, h) for w, h in PREFERRED_KONTEXT_RESOLUTIONS)
146146
image = comfy.utils.common_upscale(image.movedim(-1, 1), width, height, "lanczos", "center").movedim(1, -1)
147147
return io.NodeOutput(image)
148148

0 commit comments

Comments
 (0)