Skip to content

Commit bf13c76

Browse files
authored
Merge pull request #170 from softmatterlab/jp/fix-vae
Update vae.py
2 parents 8fe1f47 + 5445b64 commit bf13c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deeptrack/models/vaes/vae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def train_step(self, data):
3030

3131
# Sample a random point in the latent space
3232
epsilon = tf.random.normal(shape=tf.shape(z_mean))
33-
z = z_mean + tf.exp(z_log_var) * epsilon
33+
z = z_mean + tf.exp(0.5 * z_log_var) * epsilon
3434

3535
# Reconstruct the input image
3636
rdata = self.decoder(z)

0 commit comments

Comments
 (0)