Skip to content

Commit

Permalink
change prior initialization in vae training
Browse files Browse the repository at this point in the history
  • Loading branch information
kisnikser committed Nov 26, 2024
1 parent ac7ee9d commit 7a8ad24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/vae_invertible_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def parse_arguments() -> argparse.Namespace:
K = 10 # Number of classes
N = 20 # Number of categorical distributions

temp = INITIAL_TEMP
steps = 0

### CHANGE IT TO 1/K CATEGORICAL APPROXIMATION
loc_prior = torch.zeros(N, K - 1, device=device)
scale_prior = torch.ones(N, K - 1, device=device)

temp = INITIAL_TEMP
steps = 0

class VAE(nn.Module):
"""
Variational Autoencoder (VAE) with Correlated Relaxed Bernoulli distribution.
Expand Down

0 comments on commit 7a8ad24

Please sign in to comment.