I am trying to load a dataset using the pytorch’s data loader. When I run
for batch_idx, (data, label) in enumerate(loader): <rest of the code>
I get the following error:
Exception has occurred: EOFError (note: full exception trace is shown but execution is paused at: )
Ran out of input
File “”, line 1, in (Current frame)
I don’t know what’s wrong. The same dataset runs elsewhere, and I can also see some values in
loader.dataset.label with correct values.