From 229c7673ee3a0df4454aeea5870fcceda59756ba Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 7 Jun 2024 20:47:46 +0100 Subject: [PATCH] pylint exceptions continue --- deepface/spoofmodels/FasNet.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deepface/spoofmodels/FasNet.py b/deepface/spoofmodels/FasNet.py index f9204ff..8d1f988 100644 --- a/deepface/spoofmodels/FasNet.py +++ b/deepface/spoofmodels/FasNet.py @@ -190,9 +190,8 @@ def _get_new_box(src_w, src_h, bbox, scale): y = bbox[1] box_w = bbox[2] box_h = bbox[3] - scale = min( - (src_h - 1) / box_h, min((src_w - 1) / box_w, scale) - ) # pylint: disable=nested-min-max + # pylint: disable=nested-min-max + scale = min((src_h - 1) / box_h, min((src_w - 1) / box_w, scale)) new_width = box_w * scale new_height = box_h * scale center_x, center_y = box_w / 2 + x, box_h / 2 + y