From 307d974bf8d4ad7984d198ee077d6e13f3bd5132 Mon Sep 17 00:00:00 2001 From: Laurent COLBOIS <lcolbois@.idiap.ch> Date: Wed, 27 Jan 2021 13:53:54 +0100 Subject: [PATCH] Fix legacy helpers to correctly handle transform arguments when using fixed annotations --- bob/bio/face/config/baseline/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/face/config/baseline/helpers.py b/bob/bio/face/config/baseline/helpers.py index 9e03d002..c0989b1f 100644 --- a/bob/bio/face/config/baseline/helpers.py +++ b/bob/bio/face/config/baseline/helpers.py @@ -316,7 +316,7 @@ def crop_80x64(annotation_type, fixed_positions=None, color_channel="gray"): ) transform_extra_arguments = ( - None if cropped_positions is None else (("annotations", "annotations"),) + None if (cropped_positions is None or fixed_positions is not None) else (("annotations", "annotations"),) ) return face_cropper, transform_extra_arguments -- GitLab