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 66, in <module>
train(train_img_path, train_gt_path, pths_path, batch_size, lr, num_workers, epoch_iter, save_interval)
File "train.py", line 35, in train
for i, (img, gt_score, gt_geo, ignored_map) in enumerate(train_loader):
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 530, in __next__
data = self._next_data()
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1204, in _next_data
return self._process_data(data)
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1250, in _process_data
data.reraise()
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/_utils.py", line 457, in reraise
raise exception
ZeroDivisionError: Caught ZeroDivisionError in DataLoader worker process 4.
Original Traceback (most recent call last):
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/***/miniconda3/envs/gpu38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/***/EAST/dataset.py", line 389, in __getitem__
img, vertices = crop_img(img, vertices, labels, self.length)
File "/home/***/EAST/dataset.py", line 221, in crop_img
flag = is_cross_text([start_w, start_h], length, new_vertices[labels==1,:])
File "/home/***/EAST/dataset.py", line 181, in is_cross_text
if 0.01 <= inter / p2.area <= 0.99:
ZeroDivisionError: float division by zero
Why is this error occurred??
I checked my custom dataset again and again, but no difference is shown with sample ICDAR dataset...
+) Exception was handled, but I don't think it's valid because it's a temporary method
The text was updated successfully, but these errors were encountered:
Why is this error occurred??
I checked my custom dataset again and again, but no difference is shown with sample ICDAR dataset...
+) Exception was handled, but I don't think it's valid because it's a temporary method
The text was updated successfully, but these errors were encountered: