From 1dd6c889e558840785abffb33cf9bb5762e01642 Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Sun, 28 Jun 2026 16:02:02 +0200 Subject: [PATCH] =?UTF-8?q?tune(comfyui):=20crop=5Fto=5Fcontent=20pad=5Fra?= =?UTF-8?q?tio=200.06->0.02=20=E2=80=94=20sprite=20llena=20m=C3=A1s=20el?= =?UTF-8?q?=20frame?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/functions/ml/crop_to_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/functions/ml/crop_to_content.py b/python/functions/ml/crop_to_content.py index 656e44e7..56dc5461 100644 --- a/python/functions/ml/crop_to_content.py +++ b/python/functions/ml/crop_to_content.py @@ -77,7 +77,7 @@ def _content_bbox(img, alpha_threshold: int, bg_tolerance: int): def crop_to_content( img, *, - pad_ratio: float = 0.06, + pad_ratio: float = 0.02, square: bool = True, alpha_threshold: int = 10, bg_tolerance: int = 16,