Skip to content

Commit d733e5f

Browse files
committed
small robutness detail
1 parent abd2d89 commit d733e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ai/nets/samj/models/PythonMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class PythonMethods {
9696
+ " x_contours.append(x_coords)" + System.lineSeparator()
9797
+ " y_contours.append(y_coords)" + System.lineSeparator()
9898
+ " sizes.append(obj.num_pixels)" + System.lineSeparator()
99-
+ " if only_biggest:" + System.lineSeparator()
99+
+ " if only_biggest and np.array(sizes).shape[0] > 0:" + System.lineSeparator()
100100
+ " max_size_pos = np.array(sizes).argmax()" + System.lineSeparator()
101101
+ " x_contours = [x_contours[max_size_pos]]" + System.lineSeparator()
102102
+ " y_contours = [y_contours[max_size_pos]]" + System.lineSeparator()

0 commit comments

Comments
 (0)