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
0eaa34ec
Commit
0eaa34ec
authored
Jun 12, 2024
by
comfyanonymous
Browse files
Fix regular empty latent image not working with SD3 and custom sampler.
parent
321e509e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+5
-0
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
0eaa34ec
...
...
@@ -380,7 +380,10 @@ class SamplerCustom:
def
sample
(
self
,
model
,
add_noise
,
noise_seed
,
cfg
,
positive
,
negative
,
sampler
,
sigmas
,
latent_image
):
latent
=
latent_image
latent_image
=
latent
[
"samples"
]
latent
=
latent
.
copy
()
latent_image
=
comfy
.
sample
.
fix_empty_latent_channels
(
model
,
latent_image
)
latent
[
"samples"
]
=
latent_image
if
not
add_noise
:
noise
=
Noise_EmptyNoise
().
generate_noise
(
latent
)
else
:
...
...
@@ -539,7 +542,9 @@ class SamplerCustomAdvanced:
def
sample
(
self
,
noise
,
guider
,
sampler
,
sigmas
,
latent_image
):
latent
=
latent_image
latent_image
=
latent
[
"samples"
]
latent
=
latent
.
copy
()
latent_image
=
comfy
.
sample
.
fix_empty_latent_channels
(
guider
.
model_patcher
,
latent_image
)
latent
[
"samples"
]
=
latent_image
noise_mask
=
None
if
"noise_mask"
in
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