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

raise StopIteration #147

Open
dawang-11 opened this issue Mar 13, 2024 · 0 comments
Open

raise StopIteration #147

dawang-11 opened this issue Mar 13, 2024 · 0 comments

Comments

@dawang-11
Copy link

Traceback (most recent call last):
File "D:\anaconda3\envs\mm\lib\site-packages\mmcv\runner\iter_based_runner.py", line 32, in next
data = next(self.iter_loader)
File "D:\anaconda3\envs\mm\lib\site-packages\torch\utils\data\dataloader.py", line 517, in next
data = self._next_data()
File "D:\anaconda3\envs\mm\lib\site-packages\torch\utils\data\dataloader.py", line 1172, in _next_data
raise StopIteration
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tools/train.py", line 169, in
main()
File "tools/train.py", line 158, in main
train_segmentor(
File "d:\segformer-master\mmseg\apis\train.py", line 115, in train_segmentor
runner.run(data_loaders, cfg.workflow)
File "D:\anaconda3\envs\mm\lib\site-packages\mmcv\runner\iter_based_runner.py", line 131, in run
iter_runner(iter_loaders[i], **kwargs)
File "D:\anaconda3\envs\mm\lib\site-packages\mmcv\runner\iter_based_runner.py", line 58, in train
data_batch = next(data_loader)
File "D:\anaconda3\envs\mm\lib\site-packages\mmcv\runner\iter_based_runner.py", line 38, in next
data = next(self.iter_loader)
File "D:\anaconda3\envs\mm\lib\site-packages\torch\utils\data\dataloader.py", line 517, in next
data = self._next_data()
File "D:\anaconda3\envs\mm\lib\site-packages\torch\utils\data\dataloader.py", line 1172, in _next_data
raise StopIteration
StopIteration

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