Update ComfyUI/custom_nodes/ComfyUI-BrushNet/brushnet_nodes.py
Browse files
ComfyUI/custom_nodes/ComfyUI-BrushNet/brushnet_nodes.py
CHANGED
@@ -541,7 +541,7 @@ def scale_mask_and_image(image, mask, width, height):
|
|
541 |
new_mask_height = mask_height
|
542 |
new_mask_width = mask_height * aspect_ratio
|
543 |
|
544 |
-
margin = 0.
|
545 |
cut_width = int(new_mask_width * (1 + 2 * margin))
|
546 |
cut_height = int(new_mask_height * (1 + 2 * margin))
|
547 |
|
|
|
541 |
new_mask_height = mask_height
|
542 |
new_mask_width = mask_height * aspect_ratio
|
543 |
|
544 |
+
margin = 0.1
|
545 |
cut_width = int(new_mask_width * (1 + 2 * margin))
|
546 |
cut_height = int(new_mask_height * (1 + 2 * margin))
|
547 |
|