Skip to content

Commit fa376a2

Browse files
authored
Fix typos (huggingface#568)
* Fix a setting bug * Fix typos * Reverted params to parms
1 parent 76d10c1 commit fa376a2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

configuration_utils.py

Lines changed: 1 addition & 1 deletion
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)

pipelines/stable_diffusion/pipeline_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
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`"

pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py

Lines changed: 1 addition & 1 deletion
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`"

pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py

Lines changed: 1 addition & 1 deletion
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`"

schedulers/scheduling_karras_ve_flax.py

Lines changed: 1 addition & 1 deletion
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)