Skip to content
Snippets Groups Projects
Commit 307d974b authored by Laurent COLBOIS's avatar Laurent COLBOIS
Browse files

Fix legacy helpers to correctly handle transform arguments when using fixed annotations

parent 23010aa2
Branches
Tags
1 merge request!97[Fix] Legacy helpers with fixed annotations
Pipeline #47414 passed
...@@ -316,7 +316,7 @@ def crop_80x64(annotation_type, fixed_positions=None, color_channel="gray"): ...@@ -316,7 +316,7 @@ def crop_80x64(annotation_type, fixed_positions=None, color_channel="gray"):
) )
transform_extra_arguments = ( 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 return face_cropper, transform_extra_arguments
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment