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
236bda26
Commit
236bda26
authored
Feb 05, 2024
by
comfyanonymous
Browse files
Make minimum tile size the size of the overlap.
parent
74b7233f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/utils.py
comfy/utils.py
+2
-0
No files found.
comfy/utils.py
View file @
236bda26
...
...
@@ -413,6 +413,8 @@ def tiled_scale(samples, function, tile_x=64, tile_y=64, overlap = 8, upscale_am
out_div
=
torch
.
zeros
((
s
.
shape
[
0
],
out_channels
,
round
(
s
.
shape
[
2
]
*
upscale_amount
),
round
(
s
.
shape
[
3
]
*
upscale_amount
)),
device
=
output_device
)
for
y
in
range
(
0
,
s
.
shape
[
2
],
tile_y
-
overlap
):
for
x
in
range
(
0
,
s
.
shape
[
3
],
tile_x
-
overlap
):
x
=
max
(
0
,
min
(
s
.
shape
[
-
1
]
-
overlap
,
x
))
y
=
max
(
0
,
min
(
s
.
shape
[
-
2
]
-
overlap
,
y
))
s_in
=
s
[:,:,
y
:
y
+
tile_y
,
x
:
x
+
tile_x
]
ps
=
function
(
s_in
).
to
(
output_device
)
...
...
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