Skip to content

Commit

Permalink
changed the check a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Oct 23, 2023
1 parent ea1d34e commit 00ceba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darwin/torch/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __call__(self, image, annotation: dict = None) -> tuple:
transformed_data = self.transform(**albu_data)
image, transformed_annotation = self._post_process(transformed_data, annotation)

if list(albu_data.keys()) == ["image"]:
if len(annotation) < 1:
return image

return image, transformed_annotation
Expand Down

0 comments on commit 00ceba9

Please sign in to comment.