Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
2243a594
Unverified
Commit
2243a594
authored
Dec 06, 2023
by
Patrick von Platen
Committed by
GitHub
Dec 06, 2023
Browse files
[Euler Discrete] Fix sigma (#6078)
* [Euler Discrete] Fix sigma * make style
parent
466d32c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
src/diffusers/models/__init__.py
src/diffusers/models/__init__.py
+1
-1
src/diffusers/schedulers/scheduling_euler_discrete.py
src/diffusers/schedulers/scheduling_euler_discrete.py
+0
-2
No files found.
src/diffusers/models/__init__.py
View file @
2243a594
...
@@ -33,8 +33,8 @@ if is_torch_available():
...
@@ -33,8 +33,8 @@ if is_torch_available():
_import_structure
[
"consistency_decoder_vae"
]
=
[
"ConsistencyDecoderVAE"
]
_import_structure
[
"consistency_decoder_vae"
]
=
[
"ConsistencyDecoderVAE"
]
_import_structure
[
"controlnet"
]
=
[
"ControlNetModel"
]
_import_structure
[
"controlnet"
]
=
[
"ControlNetModel"
]
_import_structure
[
"dual_transformer_2d"
]
=
[
"DualTransformer2DModel"
]
_import_structure
[
"dual_transformer_2d"
]
=
[
"DualTransformer2DModel"
]
_import_structure
[
"modeling_utils"
]
=
[
"ModelMixin"
]
_import_structure
[
"embeddings"
]
=
[
"ImageProjection"
]
_import_structure
[
"embeddings"
]
=
[
"ImageProjection"
]
_import_structure
[
"modeling_utils"
]
=
[
"ModelMixin"
]
_import_structure
[
"prior_transformer"
]
=
[
"PriorTransformer"
]
_import_structure
[
"prior_transformer"
]
=
[
"PriorTransformer"
]
_import_structure
[
"t5_film_transformer"
]
=
[
"T5FilmDecoder"
]
_import_structure
[
"t5_film_transformer"
]
=
[
"T5FilmDecoder"
]
_import_structure
[
"transformer_2d"
]
=
[
"Transformer2DModel"
]
_import_structure
[
"transformer_2d"
]
=
[
"Transformer2DModel"
]
...
...
src/diffusers/schedulers/scheduling_euler_discrete.py
View file @
2243a594
...
@@ -290,8 +290,6 @@ class EulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
...
@@ -290,8 +290,6 @@ class EulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
self
.
timesteps
=
torch
.
from_numpy
(
timesteps
.
astype
(
np
.
float32
)).
to
(
device
=
device
)
self
.
timesteps
=
torch
.
from_numpy
(
timesteps
.
astype
(
np
.
float32
)).
to
(
device
=
device
)
self
.
sigmas
=
torch
.
cat
([
sigmas
,
torch
.
zeros
(
1
,
device
=
sigmas
.
device
)])
self
.
sigmas
=
torch
.
cat
([
sigmas
,
torch
.
zeros
(
1
,
device
=
sigmas
.
device
)])
if
sigmas
.
device
.
type
==
"cuda"
:
self
.
sigmas
=
self
.
sigmas
.
tolist
()
self
.
_step_index
=
None
self
.
_step_index
=
None
def
_sigma_to_t
(
self
,
sigma
,
log_sigmas
):
def
_sigma_to_t
(
self
,
sigma
,
log_sigmas
):
...
...
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