diff --git a/deepface/spoofmodels/FasNet.py b/deepface/spoofmodels/FasNet.py index 7bae318..f9204ff 100644 --- a/deepface/spoofmodels/FasNet.py +++ b/deepface/spoofmodels/FasNet.py @@ -190,7 +190,9 @@ 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)) + scale = min( + (src_h - 1) / box_h, min((src_w - 1) / box_w, scale) + ) # pylint: disable=nested-min-max new_width = box_w * scale new_height = box_h * scale center_x, center_y = box_w / 2 + x, box_h / 2 + y diff --git a/deepface/spoofmodels/FasNetBackbone.py b/deepface/spoofmodels/FasNetBackbone.py index f29711a..abfb6ce 100644 --- a/deepface/spoofmodels/FasNetBackbone.py +++ b/deepface/spoofmodels/FasNetBackbone.py @@ -17,7 +17,7 @@ from torch.nn import ( Module, ) -# pylint: disable=super-with-arguments, too-many-instance-attributes, unused-argument, redefined-builtin +# pylint: disable=super-with-arguments, too-many-instance-attributes, unused-argument, redefined-builtin, too-few-public-methods keep_dict = { "1.8M": [