Skip to content

Commit

Permalink
Download mnist globally under /tmp
Browse files Browse the repository at this point in the history
Signed-off-by: MasterSkepticista <[email protected]>
  • Loading branch information
MasterSkepticista committed Jan 16, 2025
1 parent a110bae commit b6a9505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openfl-workspace/torch_cnn_mnist/src/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _load_raw_datashards(shard_num, collaborator_count, transform=None):
2 tuples: (image, label) of the training, validation dataset
"""
train_data, val_data = (
datasets.MNIST("data", train=train, download=True, transform=transform)
datasets.MNIST("/tmp/mnist", train=train, download=True, transform=transform)
for train in (True, False)
)
X_train_tot, y_train_tot = train_data.train_data, train_data.train_labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _load_raw_datashards(shard_num, collaborator_count, transform=None):
2 tuples: (image, label) of the training, validation dataset
"""
train_data, val_data = (
datasets.MNIST('data', train=train, download=True, transform=transform)
datasets.MNIST('/tmp/mnist', train=train, download=True, transform=transform)
for train in (True, False)
)
X_train_tot, y_train_tot = train_data.train_data, train_data.train_labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _load_raw_datashards(shard_num, collaborator_count, transform=None):
2 tuples: (image, label) of the training, validation dataset
"""
train_data, val_data = (
datasets.MNIST('data', train=train, download=True, transform=transform)
datasets.MNIST('/tmp/mnist', train=train, download=True, transform=transform)
for train in (True, False)
)
X_train_tot, y_train_tot = train_data.train_data, train_data.train_labels
Expand Down

0 comments on commit b6a9505

Please sign in to comment.