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
b1a16d45
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "f1a01c2c7e2678f34c72212d2a8640237f31fa43"
Commit
b1a16d45
authored
Mar 18, 2024
by
comfyanonymous
Browse files
Fix stable cascade img2img not working with all resolutions.
parent
cacb022c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy_extras/nodes_stable_cascade.py
comfy_extras/nodes_stable_cascade.py
+1
-1
No files found.
comfy_extras/nodes_stable_cascade.py
View file @
b1a16d45
...
@@ -74,7 +74,7 @@ class StableCascade_StageC_VAEEncode:
...
@@ -74,7 +74,7 @@ class StableCascade_StageC_VAEEncode:
s
=
comfy
.
utils
.
common_upscale
(
image
.
movedim
(
-
1
,
1
),
out_width
,
out_height
,
"bicubic"
,
"center"
).
movedim
(
1
,
-
1
)
s
=
comfy
.
utils
.
common_upscale
(
image
.
movedim
(
-
1
,
1
),
out_width
,
out_height
,
"bicubic"
,
"center"
).
movedim
(
1
,
-
1
)
c_latent
=
vae
.
encode
(
s
[:,:,:,:
3
])
c_latent
=
vae
.
encode
(
s
[:,:,:,:
3
])
b_latent
=
torch
.
zeros
([
c_latent
.
shape
[
0
],
4
,
height
//
4
,
width
//
4
])
b_latent
=
torch
.
zeros
([
c_latent
.
shape
[
0
],
4
,
(
height
//
8
)
*
2
,
(
width
//
8
)
*
2
])
return
({
return
({
"samples"
:
c_latent
,
"samples"
:
c_latent
,
},
{
},
{
...
...
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