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
8ddd081b
Commit
8ddd081b
authored
Aug 29, 2023
by
comfyanonymous
Browse files
Use the same units for tile size in VAEDecodeTiled and VAEEncodeTiled.
parent
fbf375f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nodes.py
nodes.py
+3
-3
No files found.
nodes.py
View file @
8ddd081b
...
...
@@ -245,7 +245,7 @@ class VAEDecodeTiled:
@
classmethod
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"samples"
:
(
"LATENT"
,
),
"vae"
:
(
"VAE"
,
),
"tile_size"
:
(
"INT"
,
{
"default"
:
64
,
"min"
:
64
,
"max"
:
4096
,
"step"
:
64
})
"tile_size"
:
(
"INT"
,
{
"default"
:
512
,
"min"
:
192
,
"max"
:
4096
,
"step"
:
64
})
}}
RETURN_TYPES
=
(
"IMAGE"
,)
FUNCTION
=
"decode"
...
...
@@ -253,7 +253,7 @@ class VAEDecodeTiled:
CATEGORY
=
"_for_testing"
def
decode
(
self
,
vae
,
samples
,
tile_size
):
return
(
vae
.
decode_tiled
(
samples
[
"samples"
],
tile_x
=
tile_size
,
tile_y
=
tile_size
,
),
)
return
(
vae
.
decode_tiled
(
samples
[
"samples"
],
tile_x
=
tile_size
//
8
,
tile_y
=
tile_size
//
8
,
),
)
class
VAEEncode
:
@
classmethod
...
...
@@ -283,7 +283,7 @@ class VAEEncodeTiled:
@
classmethod
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"pixels"
:
(
"IMAGE"
,
),
"vae"
:
(
"VAE"
,
),
"tile_size"
:
(
"INT"
,
{
"default"
:
512
,
"min"
:
192
,
"max"
:
4096
,
"step"
:
64
})
"tile_size"
:
(
"INT"
,
{
"default"
:
512
,
"min"
:
320
,
"max"
:
4096
,
"step"
:
64
})
}}
RETURN_TYPES
=
(
"LATENT"
,)
FUNCTION
=
"encode"
...
...
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