Skip to content

Commit

Permalink
refactor: correct path to datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakis committed Nov 14, 2023
1 parent 55455b1 commit 0ed4cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo-notebooks/guided-demos/mnist_disconnected.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
BATCH_SIZE = 256 if torch.cuda.is_available() else 64
# %%

local_minst_path = os.path.join(PATH_DATASETS, "mnist")
local_minst_path = os.path.dirname(os.path.abspath(__file__) + "/mnist_datasets")

print("prior to running the trainer")
print("MASTER_ADDR: is ", os.getenv("MASTER_ADDR"))
Expand Down Expand Up @@ -114,7 +114,7 @@ def configure_optimizers(self):

def prepare_data(self):
# download
print("Downloading MNIST dataset...")
print("Preparing MNIST dataset...")
MNIST(self.data_dir, train=True, download=False)
MNIST(self.data_dir, train=False, download=False)

Expand Down

0 comments on commit 0ed4cfc

Please sign in to comment.