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
3787b4f2
"sgl-kernel/git@developer.sourcefind.cn:change/sglang.git" did not exist on "27aeb4b7d86abba34906a760f7f43159a3c275ae"
Unverified
Commit
3787b4f2
authored
May 07, 2024
by
Pam
Committed by
GitHub
May 06, 2024
Browse files
Use get_model_object in Deep Shrink node (#3408)
parent
565eb6d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
comfy_extras/nodes_model_downscale.py
comfy_extras/nodes_model_downscale.py
+3
-2
No files found.
comfy_extras/nodes_model_downscale.py
View file @
3787b4f2
...
@@ -20,8 +20,9 @@ class PatchModelAddDownscale:
...
@@ -20,8 +20,9 @@ class PatchModelAddDownscale:
CATEGORY
=
"_for_testing"
CATEGORY
=
"_for_testing"
def
patch
(
self
,
model
,
block_number
,
downscale_factor
,
start_percent
,
end_percent
,
downscale_after_skip
,
downscale_method
,
upscale_method
):
def
patch
(
self
,
model
,
block_number
,
downscale_factor
,
start_percent
,
end_percent
,
downscale_after_skip
,
downscale_method
,
upscale_method
):
sigma_start
=
model
.
model
.
model_sampling
.
percent_to_sigma
(
start_percent
)
model_sampling
=
model
.
get_model_object
(
"model_sampling"
)
sigma_end
=
model
.
model
.
model_sampling
.
percent_to_sigma
(
end_percent
)
sigma_start
=
model_sampling
.
percent_to_sigma
(
start_percent
)
sigma_end
=
model_sampling
.
percent_to_sigma
(
end_percent
)
def
input_block_patch
(
h
,
transformer_options
):
def
input_block_patch
(
h
,
transformer_options
):
if
transformer_options
[
"block"
][
1
]
==
block_number
:
if
transformer_options
[
"block"
][
1
]
==
block_number
:
...
...
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