Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
ca749513
Unverified
Commit
ca749513
authored
Sep 20, 2022
by
Yuta Hayashibe
Committed by
GitHub
Sep 19, 2022
Browse files
Fix typos (#568)
* Fix a setting bug * Fix typos * Reverted params to parms
parent
84616b5d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
_typos.toml
_typos.toml
+2
-1
src/diffusers/configuration_utils.py
src/diffusers/configuration_utils.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
...nes/stable_diffusion/pipeline_stable_diffusion_img2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
...nes/stable_diffusion/pipeline_stable_diffusion_inpaint.py
+1
-1
src/diffusers/schedulers/scheduling_karras_ve_flax.py
src/diffusers/schedulers/scheduling_karras_ve_flax.py
+1
-1
No files found.
_typos.toml
View file @
ca749513
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
[default.extend-identifiers]
[default.extend-identifiers]
[default.extend-words]
[default.extend-words]
NIN
_
=
"NIN"
# NIN is used in scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py
NIN
=
"NIN"
# NIN is used in scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py
nd
=
"np"
# nd may be np (numpy)
nd
=
"np"
# nd may be np (numpy)
parms
=
"parms"
# parms is used in scripts/convert_original_stable_diffusion_to_diffusers.py
[files]
[files]
...
...
src/diffusers/configuration_utils.py
View file @
ca749513
...
@@ -272,7 +272,7 @@ class ConfigMixin:
...
@@ -272,7 +272,7 @@ class ConfigMixin:
# remove general kwargs if present in dict
# remove general kwargs if present in dict
if
"kwargs"
in
expected_keys
:
if
"kwargs"
in
expected_keys
:
expected_keys
.
remove
(
"kwargs"
)
expected_keys
.
remove
(
"kwargs"
)
# remove flax interal keys
# remove flax inter
n
al keys
if
hasattr
(
cls
,
"_flax_internal_args"
):
if
hasattr
(
cls
,
"_flax_internal_args"
):
for
arg
in
cls
.
_flax_internal_args
:
for
arg
in
cls
.
_flax_internal_args
:
expected_keys
.
remove
(
arg
)
expected_keys
.
remove
(
arg
)
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
ca749513
...
@@ -58,7 +58,7 @@ class StableDiffusionPipeline(DiffusionPipeline):
...
@@ -58,7 +58,7 @@ class StableDiffusionPipeline(DiffusionPipeline):
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
warnings
.
warn
(
warnings
.
warn
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 istead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 i
n
stead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"
" 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
View file @
ca749513
...
@@ -70,7 +70,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline):
...
@@ -70,7 +70,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline):
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
warnings
.
warn
(
warnings
.
warn
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 istead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 i
n
stead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"
" 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
View file @
ca749513
...
@@ -89,7 +89,7 @@ class StableDiffusionInpaintPipeline(DiffusionPipeline):
...
@@ -89,7 +89,7 @@ class StableDiffusionInpaintPipeline(DiffusionPipeline):
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
warnings
.
warn
(
warnings
.
warn
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 istead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 i
n
stead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
"to update the config accordingly as leaving `steps_offset` might led to incorrect results"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
" it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"
" 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
View file @
ca749513
...
@@ -47,7 +47,7 @@ class FlaxKarrasVeOutput(BaseOutput):
...
@@ -47,7 +47,7 @@ class FlaxKarrasVeOutput(BaseOutput):
Computed sample (x_{t-1}) of previous timestep. `prev_sample` should be used as next model input in the
Computed sample (x_{t-1}) of previous timestep. `prev_sample` should be used as next model input in the
denoising loop.
denoising loop.
derivative (`jnp.ndarray` of shape `(batch_size, num_channels, height, width)` for images):
derivative (`jnp.ndarray` of shape `(batch_size, num_channels, height, width)` for images):
Derivate of predicted original image sample (x_0).
Derivat
iv
e of predicted original image sample (x_0).
state (`KarrasVeSchedulerState`): the `FlaxKarrasVeScheduler` state data class.
state (`KarrasVeSchedulerState`): the `FlaxKarrasVeScheduler` state data class.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment