Hi! Thanks, but with both options I still get:
Traceback (most recent call last):
File “/home/laura/Documentos/DatasetAppLGG3v6/Sin título0.py”, line 104, in
for x,y in trainloader:
File “/home/laura/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py”, line 345, in next
data = self._next_data()
File “/home/laura/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py”, line 385, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File “/home/laura/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py”, line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File “/home/laura/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py”, line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
IndexError: index 2312 is out of bounds for dimension 0 with size 3