Skip to content

Commit

Permalink
scaling image data
Browse files Browse the repository at this point in the history
  • Loading branch information
tsugumi-sys committed Jan 15, 2024
1 parent 9883b9e commit 6504fc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data_loaders/moving_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def __init__(
)
self.split_ratios = split_ratios

moving_mnist = MovingMNIST(root="./data", download=True)
moving_mnist = MovingMNIST(
root="./data", download=True, transform=lambda x: x / 255.0
)
train_dataset, valid_dataset, test_dataset = random_split(
moving_mnist,
[*self.split_ratios],
Expand Down

0 comments on commit 6504fc4

Please sign in to comment.