Skip to content

Commit

Permalink
Fixed length of Moving MNIST testing set sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
White-Link committed Aug 10, 2020
1 parent 0338cb6 commit 2c6bfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var_sep/data/moving_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __len__(self):
def __getitem__(self, index):
if not self.train:
# When testing, pick the selected video (from the precomputed testing set)
return self.data[index][:self.nt_cond] / 255, self.data[index][self.nt_cond:] / 255
return self.data[index][:self.nt_cond] / 255, self.data[index][self.nt_cond:self.seq_len] / 255
# When training, generate videos on the fly
x = np.zeros((self.seq_len, 1, self.frame_size, self.frame_size), dtype=np.float32)
# Generate the trajectories of each digit independently
Expand Down

0 comments on commit 2c6bfac

Please sign in to comment.