Skip to content

Commit 5445b64

Browse files
committed
Update vae.py
1 parent 8fe1f47 commit 5445b64

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)