Skip to content

Commit

Permalink
Cleaning up VAE while I'm here
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Jan 8, 2024
1 parent 245769c commit b24d287
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bioimage_embed/models/bolts/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
from pythae.models.base.base_utils import ModelOutput
from pythae.models.nn import BaseDecoder, BaseEncoder


from pythae import models
from pythae.models import VQVAEConfig, VAEConfig
from pl_bolts.models import autoencoders
from pythae.models import VQVAE, VQVAEConfig, VAE, VAEConfig

Expand Down Expand Up @@ -34,9 +37,7 @@ def forward(self, x):
output = ModelOutput()
x = self.encoder(x)
# x = self.fc1(x)
output["embedding"] = self.embedding(x)
output["log_covariance"] = self.log_var(x)
return output
return ModelOutput(embedding=self.embedding(x), log_covariance=self.log_var(x))


class ResNet50VAEDecoder(BaseDecoder):
Expand Down

0 comments on commit b24d287

Please sign in to comment.