Commit 0b7daa6d authored by patil-suraj's avatar patil-suraj
Browse files

add forward for vq model

parent 99568c5a
...@@ -535,6 +535,11 @@ class VQModel(ModelMixin, ConfigMixin): ...@@ -535,6 +535,11 @@ class VQModel(ModelMixin, ConfigMixin):
dec = self.decoder(quant) dec = self.decoder(quant)
return dec return dec
def forward(self, x):
h = self.encode(x)
dec = self.decode(h)
return dec
class AutoencoderKL(ModelMixin, ConfigMixin): class AutoencoderKL(ModelMixin, ConfigMixin):
def __init__( def __init__(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment