You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please help me, i am a beginner and i have no idea about this error!!! Thank you for you to give me some information
Traceback (most recent call last):
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/main.py", line 33, in
main()
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/main.py", line 27, in main
t.train()
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/trainer.py", line 42, in train
for batch, (lr, hr, _,) in enumerate(self.loader_train):
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
TypeError: Caught TypeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataset.py", line 218, in getitem
return self.datasets[dataset_idx][sample_idx]
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/srdata.py", line 100, in getitem
pair = self.get_patch(lr, hr)
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/srdata.py", line 138, in get_patch
lr, hr = common.get_patch(
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/common.py", line 29, in get_patch
*[a[ty:ty + tp, tx:tx + tp, :] for a in args[1:]]
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/common.py", line 29, in
*[a[ty:ty + tp, tx:tx + tp, :] for a in args[1:]]
TypeError: list indices must be integers or slices, not tuple
The text was updated successfully, but these errors were encountered:
please help me, i am a beginner and i have no idea about this error!!! Thank you for you to give me some information
Traceback (most recent call last):
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/main.py", line 33, in
main()
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/main.py", line 27, in main
t.train()
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/trainer.py", line 42, in train
for batch, (lr, hr, _,) in enumerate(self.loader_train):
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
TypeError: Caught TypeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/Husiyu2022/anaconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/data/dataset.py", line 218, in getitem
return self.datasets[dataset_idx][sample_idx]
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/srdata.py", line 100, in getitem
pair = self.get_patch(lr, hr)
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/srdata.py", line 138, in get_patch
lr, hr = common.get_patch(
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/common.py", line 29, in get_patch
*[a[ty:ty + tp, tx:tx + tp, :] for a in args[1:]]
File "/home/Husiyu2022/PycharmProjects/EDSR-PyTorch/src/data/common.py", line 29, in
*[a[ty:ty + tp, tx:tx + tp, :] for a in args[1:]]
TypeError: list indices must be integers or slices, not tuple
The text was updated successfully, but these errors were encountered: