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
2a8477de
Unverified
Commit
2a8477de
authored
Sep 19, 2022
by
Patrick von Platen
Committed by
GitHub
Sep 19, 2022
Browse files
[Flax] Solve problem with VAE (#574)
parent
bf5ca036
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/diffusers/models/vae_flax.py
src/diffusers/models/vae_flax.py
+2
-1
No files found.
src/diffusers/models/vae_flax.py
View file @
2a8477de
...
...
@@ -600,7 +600,8 @@ class FlaxAutoencoderKL(nn.Module, FlaxModelMixin, ConfigMixin):
hidden_states
=
posterior
.
latent_dist
.
sample
(
rng
)
else
:
hidden_states
=
posterior
.
latent_dist
.
mode
()
hidden_states
=
self
.
decode
(
hidden_states
,
return_dict
=
return_dict
).
sample
sample
=
self
.
decode
(
hidden_states
,
return_dict
=
return_dict
).
sample
if
not
return_dict
:
return
(
sample
,)
...
...
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