From 6773b98933277f755d1e66e59c519562a446cc4e Mon Sep 17 00:00:00 2001 From: nullquant Date: Sun, 16 Jun 2024 21:29:45 +0300 Subject: [PATCH] Masked area instead of mask in exception --- brushnet_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brushnet_nodes.py b/brushnet_nodes.py index 6a372df..2eaa366 100644 --- a/brushnet_nodes.py +++ b/brushnet_nodes.py @@ -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