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
7c9a0f7e
Commit
7c9a0f7e
authored
Jan 05, 2024
by
comfyanonymous
Browse files
Fix BasicScheduler issue with Loras.
parent
35322a37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+2
-3
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
7c9a0f7e
...
...
@@ -26,9 +26,8 @@ class BasicScheduler:
if
denoise
<
1.0
:
total_steps
=
int
(
steps
/
denoise
)
inner_model
=
model
.
patch_model
(
patch_weights
=
False
)
sigmas
=
comfy
.
samplers
.
calculate_sigmas_scheduler
(
inner_model
,
scheduler
,
total_steps
).
cpu
()
model
.
unpatch_model
()
comfy
.
model_management
.
load_models_gpu
([
model
])
sigmas
=
comfy
.
samplers
.
calculate_sigmas_scheduler
(
model
.
model
,
scheduler
,
total_steps
).
cpu
()
sigmas
=
sigmas
[
-
(
steps
+
1
):]
return
(
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