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
renzhc
diffusers_dcu
Commits
6e80d240
Unverified
Commit
6e80d240
authored
Apr 15, 2025
by
hlky
Committed by
GitHub
Apr 15, 2025
Browse files
Fix vae.Decoder prev_output_channel (#11280)
parent
9352a5ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/autoencoders/vae.py
src/diffusers/models/autoencoders/vae.py
+1
-1
No files found.
src/diffusers/models/autoencoders/vae.py
View file @
6e80d240
...
@@ -255,7 +255,7 @@ class Decoder(nn.Module):
...
@@ -255,7 +255,7 @@ class Decoder(nn.Module):
num_layers
=
self
.
layers_per_block
+
1
,
num_layers
=
self
.
layers_per_block
+
1
,
in_channels
=
prev_output_channel
,
in_channels
=
prev_output_channel
,
out_channels
=
output_channel
,
out_channels
=
output_channel
,
prev_output_channel
=
No
ne
,
prev_output_channel
=
prev_output_chan
ne
l
,
add_upsample
=
not
is_final_block
,
add_upsample
=
not
is_final_block
,
resnet_eps
=
1e-6
,
resnet_eps
=
1e-6
,
resnet_act_fn
=
act_fn
,
resnet_act_fn
=
act_fn
,
...
...
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