Skip to content

Commit

Permalink
Merge pull request #436 from DagsHub/bug/fiftyone-annotations
Browse files Browse the repository at this point in the history
FIftyOne: Unpack the new tuple that gets returned from the ls converter
  • Loading branch information
kbolashev authored Feb 20, 2024
2 parents 2162a2e + cf9edcb commit 61eacf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dagshub/data_engine/annotation/voxel_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def add_ls_annotations(sample: "fo.Sample", datapoint: "Datapoint", *annotation_
for res in ann["result"]:
try:
converted = import_label_studio_annotation(res)
if type(converted) is tuple:
converted = converted[1]
annotations.append(converted)
except Exception:
logger.warning(f"Couldn't convert LS annotation {ann} to voxel annotation")
Expand Down

0 comments on commit 61eacf6

Please sign in to comment.