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

RuntimeError: Trying to resize storage that is not resizable #22

Open
1094724913 opened this issue Aug 5, 2023 · 0 comments
Open

RuntimeError: Trying to resize storage that is not resizable #22

1094724913 opened this issue Aug 5, 2023 · 0 comments

Comments

@1094724913
Copy link

Hi!

When I was training on ucf101 with command:

python main.py --config configs/ucf101.yml --data_path datasets/download_ucf_101/UCF101_h5 --exp ucf101 --ni

I received following error:
ucf101/logs/meters.pkl does not exist! Returning.
ERROR - main.py - 2023-08-05 11:15:09,283 - Traceback (most recent call last):
File "main.py", line 404, in main
runner.train()
File "/home/jsun/PycharmProjects/mcvd-pytorch-master/runners/ncsn_runner.py", line 374, in train
for batch, (X, y) in enumerate(dataloader):
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 530, in next
data = self._next_data()
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1224, in _next_data
return self._process_data(data)
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1250, in _process_data
data.reraise()
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/_utils.py", line 457, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch
return self.collate_fn(data)
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 174, in default_collate
return [default_collate(samples) for samples in transposed] # Backwards compatibility.
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 174, in
return [default_collate(samples) for samples in transposed] # Backwards compatibility.
File "/opt/anaconda3/envs/vid/lib/python3.8/site-packages/torch/utils/data/utils/collate.py", line 139, in default_collate
out = elem.new(storage).resize
(len(batch), *list(elem.size()))
RuntimeError: Trying to resize storage that is not resizable

Check the information and say that the data dimensions are not uniform, what should I do?
Thank you

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