Skip to content
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

About Training, how to deal with this problem? #123

Open
jjjjzyyyyyy opened this issue Oct 24, 2022 · 3 comments
Open

About Training, how to deal with this problem? #123

jjjjzyyyyyy opened this issue Oct 24, 2022 · 3 comments

Comments

@jjjjzyyyyyy
Copy link

Traceback (most recent call last):
File "train.py", line 140, in
for ii, data_val in enumerate((val_loader), 0):
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 530, in next
data = self._next_data()
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1204, in _next_data
return self._process_data(data)
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1250, in _process_data
data.reraise()
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/_utils.py", line 457, in reraise
raise exception
IndexError: Caught IndexError in DataLoader worker process 6.
Original Traceback (most recent call last):
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/mail/2019p9/p930026055/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/share/mail/2019p9/p930026055/directory_2/MPRNet/Deraining/dataset_RGB.py", line 111, in getitem
inp_path = self.inp_filenames[index
]
IndexError: list index out of range

@ELan-real
Copy link

Hi, have you solved this problem? Could you tell the solution?

@jjjjzyyyyyy
Copy link
Author

jjjjzyyyyyy commented Nov 21, 2022 via email

@Feecuin
Copy link

Feecuin commented Apr 4, 2024

您好,您可以检查您的数据集目录或数据集的每个项目是否有正确的名称。
……
---Original--- From: @.> Date: Mon, Nov 21, 2022 18:10 PM To: @.>; Cc: @.@.>; Subject: Re: [swz30/MPRNet] About Training, how to deal with this problem?(Issue #123) Hi, have you solved this problem? Could you tell the solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

你好,请问下可以看看你的数据集是如何存放的吗?我发现我训练的时候save_images:true 还是不能出图,PSNR一直都上不去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants