updates
This commit is contained in:
parent
9a18166382
commit
2ad3276c77
|
@ -645,7 +645,7 @@ def cutout(image, labels):
|
||||||
# return unobscured labels
|
# return unobscured labels
|
||||||
box = np.array([xmin, ymin, xmax, ymax], dtype=np.float32)
|
box = np.array([xmin, ymin, xmax, ymax], dtype=np.float32)
|
||||||
ioa = bbox_ioa(box, labels[:, 1:5]) # intersection over area
|
ioa = bbox_ioa(box, labels[:, 1:5]) # intersection over area
|
||||||
return labels[ioa < 0.8] # > 80% obscured labels removed
|
return labels[ioa < 0.90] # > 90% obscured labels removed
|
||||||
|
|
||||||
|
|
||||||
def convert_images2bmp():
|
def convert_images2bmp():
|
||||||
|
|
Loading…
Reference in New Issue