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
1ea4d846
Commit
1ea4d846
authored
Jul 27, 2023
by
asagi4
Browse files
Fix timestep ranges when batch_size > 1
parent
4ab75d9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy/samplers.py
comfy/samplers.py
+2
-2
No files found.
comfy/samplers.py
View file @
1ea4d846
...
@@ -19,11 +19,11 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
...
@@ -19,11 +19,11 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
strength
=
1.0
strength
=
1.0
if
'timestep_start'
in
cond
[
1
]:
if
'timestep_start'
in
cond
[
1
]:
timestep_start
=
cond
[
1
][
'timestep_start'
]
timestep_start
=
cond
[
1
][
'timestep_start'
]
if
timestep_in
>
timestep_start
:
if
timestep_in
[
0
]
>
timestep_start
:
return
None
return
None
if
'timestep_end'
in
cond
[
1
]:
if
'timestep_end'
in
cond
[
1
]:
timestep_end
=
cond
[
1
][
'timestep_end'
]
timestep_end
=
cond
[
1
][
'timestep_end'
]
if
timestep_in
<
timestep_end
:
if
timestep_in
[
0
]
<
timestep_end
:
return
None
return
None
if
'area'
in
cond
[
1
]:
if
'area'
in
cond
[
1
]:
area
=
cond
[
1
][
'area'
]
area
=
cond
[
1
][
'area'
]
...
...
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