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

An error occurred while attempting to train #27

Open
124518 opened this issue Oct 25, 2023 · 0 comments
Open

An error occurred while attempting to train #27

124518 opened this issue Oct 25, 2023 · 0 comments

Comments

@124518
Copy link

124518 commented Oct 25, 2023

ValueError: Caught ValueError in DataLoader worker process 3.
Original Traceback (most recent call last):
File "/home/ubuntu/users/liangyinghao/miniconda3/envs/mvp/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 185, in _worker_loop
data = fetcher.fetch(index)
File "/home/ubuntu/users/liangyinghao/miniconda3/envs/mvp/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/ubuntu/users/liangyinghao/miniconda3/envs/mvp/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/mnt/DataDrive52/lyh/mvp/run/../lib/dataset/shelf.py", line 240, in getitem
m,i = super().getitem(self.num_views * idx + k)
ValueError: too many values to unpack (expected 2)
I have checked the source code and found that there are two return values, but this error keeps occurring. Can you please help me solve it?

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

1 participant