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
746a0410
Commit
746a0410
authored
Jun 16, 2024
by
comfyanonymous
Browse files
Fix VAEEncode with taesd3.
parent
04e8798c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
comfy/sd.py
comfy/sd.py
+2
-1
No files found.
comfy/sd.py
View file @
746a0410
...
@@ -189,7 +189,8 @@ class VAE:
...
@@ -189,7 +189,8 @@ class VAE:
encoder_config
=
{
'target'
:
"comfy.ldm.modules.diffusionmodules.model.Encoder"
,
'params'
:
encoder_config
},
encoder_config
=
{
'target'
:
"comfy.ldm.modules.diffusionmodules.model.Encoder"
,
'params'
:
encoder_config
},
decoder_config
=
{
'target'
:
"comfy.ldm.modules.temporal_ae.VideoDecoder"
,
'params'
:
decoder_config
})
decoder_config
=
{
'target'
:
"comfy.ldm.modules.temporal_ae.VideoDecoder"
,
'params'
:
decoder_config
})
elif
"taesd_decoder.1.weight"
in
sd
:
elif
"taesd_decoder.1.weight"
in
sd
:
self
.
first_stage_model
=
comfy
.
taesd
.
taesd
.
TAESD
(
latent_channels
=
sd
[
"taesd_decoder.1.weight"
].
shape
[
1
])
self
.
latent_channels
=
sd
[
"taesd_decoder.1.weight"
].
shape
[
1
]
self
.
first_stage_model
=
comfy
.
taesd
.
taesd
.
TAESD
(
latent_channels
=
self
.
latent_channels
)
elif
"vquantizer.codebook.weight"
in
sd
:
#VQGan: stage a of stable cascade
elif
"vquantizer.codebook.weight"
in
sd
:
#VQGan: stage a of stable cascade
self
.
first_stage_model
=
StageA
()
self
.
first_stage_model
=
StageA
()
self
.
downscale_ratio
=
4
self
.
downscale_ratio
=
4
...
...
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