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
036a2207
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "95d796fc85608272a9bf06a8c6c1f45912179118"
Commit
036a2207
authored
Jun 19, 2023
by
comfyanonymous
Browse files
Fix k_diffusion math being off by a tiny bit during txt2img.
parent
8883cb0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy/samplers.py
comfy/samplers.py
+4
-1
No files found.
comfy/samplers.py
View file @
036a2207
...
...
@@ -650,7 +650,10 @@ class KSampler:
self
.
model_k
.
latent_image
=
latent_image
self
.
model_k
.
noise
=
noise
noise
=
noise
*
sigmas
[
0
]
if
max_denoise
:
noise
=
noise
*
torch
.
sqrt
(
1.0
+
sigmas
[
0
]
**
2.0
)
else
:
noise
=
noise
*
sigmas
[
0
]
k_callback
=
None
total_steps
=
len
(
sigmas
)
-
1
...
...
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