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
0b7daa6d
".github/vscode:/vscode.git/clone" did not exist on "e4902652423fd934a83e08b98fb3b09bdb5766a2"
Commit
0b7daa6d
authored
Jun 29, 2022
by
patil-suraj
Browse files
add forward for vq model
parent
99568c5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/diffusers/models/vae.py
src/diffusers/models/vae.py
+5
-0
No files found.
src/diffusers/models/vae.py
View file @
0b7daa6d
...
...
@@ -535,6 +535,11 @@ class VQModel(ModelMixin, ConfigMixin):
dec
=
self
.
decoder
(
quant
)
return
dec
def
forward
(
self
,
x
):
h
=
self
.
encode
(
x
)
dec
=
self
.
decode
(
h
)
return
dec
class
AutoencoderKL
(
ModelMixin
,
ConfigMixin
):
def
__init__
(
...
...
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