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
97015b6b
"src/sdk/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "654e8242b47b4bce4586feb3aa1aa01a0d3ce3a9"
Commit
97015b6b
authored
Dec 08, 2023
by
comfyanonymous
Browse files
Cleanup.
parent
a4ec54a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
comfy/samplers.py
comfy/samplers.py
+1
-4
No files found.
comfy/samplers.py
View file @
97015b6b
...
@@ -276,10 +276,7 @@ class KSamplerX0Inpaint(torch.nn.Module):
...
@@ -276,10 +276,7 @@ class KSamplerX0Inpaint(torch.nn.Module):
x
=
x
*
denoise_mask
+
(
self
.
latent_image
+
self
.
noise
*
sigma
.
reshape
([
sigma
.
shape
[
0
]]
+
[
1
]
*
(
len
(
self
.
noise
.
shape
)
-
1
)))
*
latent_mask
x
=
x
*
denoise_mask
+
(
self
.
latent_image
+
self
.
noise
*
sigma
.
reshape
([
sigma
.
shape
[
0
]]
+
[
1
]
*
(
len
(
self
.
noise
.
shape
)
-
1
)))
*
latent_mask
out
=
self
.
inner_model
(
x
,
sigma
,
cond
=
cond
,
uncond
=
uncond
,
cond_scale
=
cond_scale
,
model_options
=
model_options
,
seed
=
seed
)
out
=
self
.
inner_model
(
x
,
sigma
,
cond
=
cond
,
uncond
=
uncond
,
cond_scale
=
cond_scale
,
model_options
=
model_options
,
seed
=
seed
)
if
denoise_mask
is
not
None
:
if
denoise_mask
is
not
None
:
out
*=
denoise_mask
out
=
out
*
denoise_mask
+
self
.
latent_image
*
latent_mask
if
denoise_mask
is
not
None
:
out
+=
self
.
latent_image
*
latent_mask
return
out
return
out
def
simple_scheduler
(
model
,
steps
):
def
simple_scheduler
(
model
,
steps
):
...
...
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