从这里跟进:Calculating percentage of Bounding box overlap, for image detector evaluation,我在这一行收到错误:
poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0]
这是错误:
File "C:\work_asaaki\code\detection.py", line 32, in clip_boxes
poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0]
File "C:\Anaconda\lib\site-packages\matplotlib\path.py", line 909, in clip_to_bbox
return self.make_compound_path(*paths)
File "C:\Anaconda\lib\site-packages\matplotlib\path.py", line 328, in make_compound_path
vertices = np.vstack([x.vertices for x in args])
File "C:\Anaconda\lib\site-packages\numpy\core\shape_base.py", line 228, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: need at least one array to concatenate
这并不总是会发生,它是基于特定的多边形集合而发生的......我想要了解的是它究竟何时不起作用?我该如何解决这个问题?