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
chenpangpang
ComfyUI
Commits
ee8f8ee0
"...composable_kernel_onnx.git" did not exist on "33c38e2a2370f13b8da550a07c8c70980942ace6"
Commit
ee8f8ee0
authored
Jul 17, 2023
by
comfyanonymous
Browse files
Fix regression with ddim and uni_pc when batch size > 1.
parent
3ded1a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy/k_diffusion/external.py
comfy/k_diffusion/external.py
+2
-2
No files found.
comfy/k_diffusion/external.py
View file @
ee8f8ee0
...
...
@@ -92,8 +92,8 @@ class DiscreteSchedule(nn.Module):
def
predict_eps_discrete_timestep
(
self
,
input
,
t
,
**
kwargs
):
sigma
=
self
.
t_to_sigma
(
t
.
round
())
input
=
input
*
((
sigma
**
2
+
1.0
)
**
0.5
)
return
(
input
-
self
(
input
,
sigma
,
**
kwargs
))
/
sigma
input
=
input
*
((
utils
.
append_dims
(
sigma
,
input
.
ndim
)
**
2
+
1.0
)
**
0.5
)
return
(
input
-
self
(
input
,
sigma
,
**
kwargs
))
/
utils
.
append_dims
(
sigma
,
input
.
ndim
)
class
DiscreteEpsDDPMDenoiser
(
DiscreteSchedule
):
"""A wrapper for discrete schedule DDPM models that output eps (the predicted
...
...
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