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
41b07ff8
Commit
41b07ff8
authored
Oct 29, 2023
by
Jedrzej Kosinski
Browse files
Fix TAESD preview to only decode first latent, instead of all
parent
a12cc053
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
latent_preview.py
latent_preview.py
+1
-1
No files found.
latent_preview.py
View file @
41b07ff8
...
...
@@ -22,7 +22,7 @@ class TAESDPreviewerImpl(LatentPreviewer):
self
.
taesd
=
taesd
def
decode_latent_to_preview
(
self
,
x0
):
x_sample
=
self
.
taesd
.
decoder
(
x0
)[
0
].
detach
()
x_sample
=
self
.
taesd
.
decoder
(
x0
[:
1
]
)[
0
].
detach
()
# 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
)
...
...
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