Freak-ppa commited on
Commit
1784c6d
1 Parent(s): 350e203

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.3
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