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
Traceback (most recent call last): File "train.py", line 178, in train() File "train.py", line 134, in train images, targets = next(batch_iterator) File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in next data = self._next_data() File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1058, in _next_data raise StopIteration StopIteration
The text was updated successfully, but these errors were encountered:
Aruen24
changed the title
Traceback (most recent call last): File "train.py", line 178, in <module> train() File "train.py", line 134, in train images, targets = next(batch_iterator) File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ data = self._next_data() File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1058, in _next_data raise StopIteration StopIteration
raise StopIteration StopIteration
Dec 2, 2021
Traceback (most recent call last): File "train.py", line 178, in train() File "train.py", line 134, in train images, targets = next(batch_iterator) File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in next data = self._next_data() File "/home/wyw/.conda/envs/py36_torch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1058, in _next_data raise StopIteration StopIteration
batch_iterator = iter(data.DataLoader(dataset, batch_size, shuffle=True, num_workers=num_workers,
collate_fn=detection_collate, drop_last=True))
change to
batch_iterator = iter(data.DataLoader(dataset, batch_size, shuffle=True, num_workers=num_workers,
collate_fn=detection_collate))
The text was updated successfully, but these errors were encountered: