Masked area instead of mask in exception

This commit is contained in:
nullquant
2024-06-16 21:29:45 +03:00
parent 1f697cd224
commit 6773b98933
+1 -1
View File
@@ -702,7 +702,7 @@ def cut_with_mask(mask, width, height):
y_max = iy.max().item()
if x_max - x_min > width or y_max - y_min > height:
raise Exception("Mask is bigger than provided dimensions")
raise Exception("Masked area is bigger than provided dimensions")
x_c = (x_min + x_max) / 2.0
y_c = (y_min + y_max) / 2.0