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
f2d432f9
"ml/backend/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "4d4463b2bd5443adc5e86943132ee727550f09b7"
Commit
f2d432f9
authored
Jan 22, 2024
by
comfyanonymous
Browse files
Fix potential turbo scheduler model patching issue.
parent
4871a364
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 @
f2d432f9
...
@@ -105,9 +105,8 @@ class SDTurboScheduler:
...
@@ -105,9 +105,8 @@ class SDTurboScheduler:
def
get_sigmas
(
self
,
model
,
steps
,
denoise
):
def
get_sigmas
(
self
,
model
,
steps
,
denoise
):
start_step
=
10
-
int
(
10
*
denoise
)
start_step
=
10
-
int
(
10
*
denoise
)
timesteps
=
torch
.
flip
(
torch
.
arange
(
1
,
11
)
*
100
-
1
,
(
0
,))[
start_step
:
start_step
+
steps
]
timesteps
=
torch
.
flip
(
torch
.
arange
(
1
,
11
)
*
100
-
1
,
(
0
,))[
start_step
:
start_step
+
steps
]
inner_model
=
model
.
patch_model
(
patch_weights
=
False
)
comfy
.
model_management
.
load_models_gpu
([
model
])
sigmas
=
inner_model
.
model_sampling
.
sigma
(
timesteps
)
sigmas
=
model
.
model
.
model_sampling
.
sigma
(
timesteps
)
model
.
unpatch_model
()
sigmas
=
torch
.
cat
([
sigmas
,
sigmas
.
new_zeros
([
1
])])
sigmas
=
torch
.
cat
([
sigmas
,
sigmas
.
new_zeros
([
1
])])
return
(
sigmas
,
)
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