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
d8dea4cd
Commit
d8dea4cd
authored
Apr 05, 2024
by
comfyanonymous
Browse files
Fix DisableNoise node.
parent
a7dd82e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+2
-2
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
d8dea4cd
...
@@ -320,7 +320,7 @@ class Noise_EmptyNoise:
...
@@ -320,7 +320,7 @@ class Noise_EmptyNoise:
def
generate_noise
(
self
,
input_latent
):
def
generate_noise
(
self
,
input_latent
):
latent_image
=
input_latent
[
"samples"
]
latent_image
=
input_latent
[
"samples"
]
return
torch
.
zeros
(
shape
,
dtype
=
latent_image
.
dtype
,
layout
=
latent_image
.
layout
,
device
=
"cpu"
)
return
torch
.
zeros
(
latent_image
.
shape
,
dtype
=
latent_image
.
dtype
,
layout
=
latent_image
.
layout
,
device
=
"cpu"
)
class
Noise_RandomNoise
:
class
Noise_RandomNoise
:
...
@@ -477,7 +477,7 @@ class DisableNoise:
...
@@ -477,7 +477,7 @@ class DisableNoise:
FUNCTION
=
"get_noise"
FUNCTION
=
"get_noise"
CATEGORY
=
"sampling/custom_sampling/noise"
CATEGORY
=
"sampling/custom_sampling/noise"
def
get_noise
(
self
,
noise_seed
):
def
get_noise
(
self
):
return
(
Noise_EmptyNoise
(),)
return
(
Noise_EmptyNoise
(),)
...
...
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