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
0d972b85
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "0d0f8aac1523d26756c2e4198f744f461986b9fb"
Commit
0d972b85
authored
Mar 31, 2023
by
comfyanonymous
Browse files
This seems to give better quality in tome.
parent
18a6c1db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/ldm/modules/tomesd.py
comfy/ldm/modules/tomesd.py
+1
-1
No files found.
comfy/ldm/modules/tomesd.py
View file @
0d972b85
...
@@ -109,7 +109,7 @@ def get_functions(x, ratio, original_shape):
...
@@ -109,7 +109,7 @@ def get_functions(x, ratio, original_shape):
w
=
original_w
//
downsample
w
=
original_w
//
downsample
h
=
original_h
//
downsample
h
=
original_h
//
downsample
r
=
int
(
x
.
shape
[
1
]
*
ratio
)
r
=
int
(
x
.
shape
[
1
]
*
ratio
)
no_rand
=
Tru
e
no_rand
=
Fals
e
m
,
u
=
bipartite_soft_matching_random2d
(
x
,
w
,
h
,
stride_x
,
stride_y
,
r
,
no_rand
)
m
,
u
=
bipartite_soft_matching_random2d
(
x
,
w
,
h
,
stride_x
,
stride_y
,
r
,
no_rand
)
return
m
,
u
return
m
,
u
...
...
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