Skip to content

Commit ca74951

Browse files
authored
Fix typos (#568)
* Fix a setting bug * Fix typos * Reverted params to parms
1 parent 84616b5 commit ca74951

6 files changed

+7
-6
lines changed

_typos.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
[default.extend-identifiers]
55

66
[default.extend-words]
7-
NIN_="NIN" # NIN is used in scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py
7+
NIN="NIN" # NIN is used in scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py
88
nd="np" # nd may be np (numpy)
9+
parms="parms" # parms is used in scripts/convert_original_stable_diffusion_to_diffusers.py
910

1011

1112
[files]

src/diffusers/configuration_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def extract_init_dict(cls, config_dict, **kwargs):
272272
# remove general kwargs if present in dict
273273
if "kwargs" in expected_keys:
274274
expected_keys.remove("kwargs")
275-
# remove flax interal keys
275+
# remove flax internal keys
276276
if hasattr(cls, "_flax_internal_args"):
277277
for arg in cls._flax_internal_args:
278278
expected_keys.remove(arg)

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
5959
warnings.warn(
6060
f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
61-
f" should be set to 1 istead of {scheduler.config.steps_offset}. Please make sure "
61+
f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
6262
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
6363
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
6464
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
7171
warnings.warn(
7272
f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
73-
f" should be set to 1 istead of {scheduler.config.steps_offset}. Please make sure "
73+
f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
7474
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
7575
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
7676
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
9090
warnings.warn(
9191
f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
92-
f" should be set to 1 istead of {scheduler.config.steps_offset}. Please make sure "
92+
f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
9393
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
9494
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
9595
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"

src/diffusers/schedulers/scheduling_karras_ve_flax.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class FlaxKarrasVeOutput(BaseOutput):
4747
Computed sample (x_{t-1}) of previous timestep. `prev_sample` should be used as next model input in the
4848
denoising loop.
4949
derivative (`jnp.ndarray` of shape `(batch_size, num_channels, height, width)` for images):
50-
Derivate of predicted original image sample (x_0).
50+
Derivative of predicted original image sample (x_0).
5151
state (`KarrasVeSchedulerState`): the `FlaxKarrasVeScheduler` state data class.
5252
"""
5353

0 commit comments

Comments
 (0)