Skip to content

Commit

Permalink
fix bug varautoencoder_mednist.ipynb (Project-MONAI#1626)
Browse files Browse the repository at this point in the history
Bug in VAE tutorial, indexing of the data dictionaries
train_datadict[:10] and test_datadict[:10] had been left there.

### Description
In a previous commit, someone left indexes on the data dictionaries
train_datadict[:10] and test_datadict[:10] to debug. I removed them so
the code properly runs on the whole dataset.

### Checks

Signed-off-by: Clea Dronne <[email protected]>
  • Loading branch information
clead6 authored Feb 1, 2024
1 parent d8fc342 commit 3093dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/varautoencoder_mednist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@
" ]\n",
")\n",
"\n",
"train_ds = CacheDataset(train_datadict[:10], transforms, num_workers=num_workers)\n",
"train_ds = CacheDataset(train_datadict, transforms, num_workers=num_workers)\n",
"train_loader = DataLoader(train_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers)\n",
"test_ds = CacheDataset(test_datadict[:10], transforms, num_workers=num_workers)\n",
"test_ds = CacheDataset(test_datadict, transforms, num_workers=num_workers)\n",
"test_loader = DataLoader(test_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers)"
]
},
Expand Down

0 comments on commit 3093dec

Please sign in to comment.