Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary mnist dm fix #377

Merged
merged 6 commits into from
Nov 19, 2020
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pl_bolts/datamodules/binary_mnist_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BinaryMNISTDataModule(LightningDataModule):
Trainer().fit(model, dm)
"""

name = 'mnist'
name = "binary_mnist"

def __init__(
self,
Expand Down Expand Up @@ -89,8 +89,8 @@ def prepare_data(self):
"""
Saves MNIST files to data_dir
"""
MNIST(self.data_dir, train=True, download=True, transform=transform_lib.ToTensor())
MNIST(self.data_dir, train=False, download=True, transform=transform_lib.ToTensor())
BinaryMNIST(self.data_dir, train=True, download=True, transform=transform_lib.ToTensor())
BinaryMNIST(self.data_dir, train=False, download=True, transform=transform_lib.ToTensor())

def train_dataloader(self, batch_size=32, transforms=None):
"""
Expand Down