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
70d72c43
Commit
70d72c43
authored
Jun 05, 2023
by
space-nuko
Browse files
Slightly less vibrant sample
parent
48f7ec75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nodes.py
nodes.py
+2
-2
No files found.
nodes.py
View file @
70d72c43
...
...
@@ -264,8 +264,8 @@ class TAESDPreviewerImpl(LatentPreviewer):
def
decode_latent_to_preview
(
self
,
device
,
x0
):
x_sample
=
self
.
taesd
.
decoder
(
x0
.
to
(
device
))[
0
].
detach
()
x_sample
=
self
.
taesd
.
unscale_latents
(
x_sample
)
# returns value in [-2, 2]
x_sample
=
x_sample
*
0.5
#
x_sample = self.taesd.unscale_latents(x_sample)
.div(4).add(0.5)
# returns value in [-2, 2]
x_sample
=
x_sample
.
sub
(
0.5
).
mul
(
2
)
return
x_sample
class
SaveLatent
:
...
...
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