Skip to content

Commit 3093dec

Browse files
authored
fix bug varautoencoder_mednist.ipynb (#1626)
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]>
1 parent d8fc342 commit 3093dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/varautoencoder_mednist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@
358358
" ]\n",
359359
")\n",
360360
"\n",
361-
"train_ds = CacheDataset(train_datadict[:10], transforms, num_workers=num_workers)\n",
361+
"train_ds = CacheDataset(train_datadict, transforms, num_workers=num_workers)\n",
362362
"train_loader = DataLoader(train_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers)\n",
363-
"test_ds = CacheDataset(test_datadict[:10], transforms, num_workers=num_workers)\n",
363+
"test_ds = CacheDataset(test_datadict, transforms, num_workers=num_workers)\n",
364364
"test_loader = DataLoader(test_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers)"
365365
]
366366
},

0 commit comments

Comments
 (0)