text-detection-fots.pytorch
text-detection-fots.pytorch copied to clipboard
error when resuming training icdar2015
Firstly, Thanks for sharing the code. 2. Train with ICDAR15 I am trying to resume training on icdar2015 and I run into the following issue text-detection-fots.pytorch/datasets.py", line 93, in transform intersected_quad -= crop_point ValueError: operands could not be broadcast together with shapes (0,) (2,) (0,) Some of the quads seem to be empty. Could I ignore those and continue. May I ask if how you fixed it? Or am I missing anything I modified the dataset to icdar, and followed your other instructions! thanks!
Hi, @eyebies.
intersected_quad
is not supposed to be empty because of for quad_id, quad in enumerate(quads)
. The loop iterates over the first dimension of quads
array, so quad
must have something, it can't be an empty array.
I think there are two possible reasons:
-
shapely.geometry.Polygon.intersection()
does something that corruptsintersected_polygon
, but leaves it of typePolygon
. I tried running training, and it works (Shapely==1.6.4.post2
). - You have modified
datasets.py
. Originallyintersected_quad -= crop_point
is at line 92, but for you the line is 93. May be the change is lethal for the script :)
Thanks for your response! ! I will check that.
Thanks for your response! ! I will check that.
Excuse me,have you fix it?I got the same error.
Thanks for your response! ! I will check that.
Excuse me,have you fix it?I got the same error.
Hi,I got the same error, too. And I try to change the version of Shapely to Shapely==1.6.4.post2, which is same as the author's. Then it works.
Thanks for your response! ! I will check that.
Excuse me,have you fix it?I got the same error.
Hello, I also encountered the same problem, how did you solve it?