mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 19:45:21 +00:00
pylint exceptions continue
This commit is contained in:
parent
429c6b8f67
commit
229c7673ee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user