-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in PyTorch DataLoder #1
Comments
there is something wrong. For the first line, train folders is a string and so for d in train_folders doesn't work. |
Sorry, now i know that d is a list. hahaha |
How can I download the training datasets? thanks |
@JIAZhenZ when you search (CTRLF) in the readme for "download", you will find:
So: [ training direct link ], [validation direct link] |
i got this error when i train a model (srgan)
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/drive/My Drive/PyTorch--master/datasets.py", line 67, in getitem
img = Image.open(self.images[i], mode='r')
KeyError: 0
how how many epoch i should do to make a good model?
i'm training the model in google colab
thanks
The text was updated successfully, but these errors were encountered: