Skip to content

Commit

Permalink
fixed loading annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Sep 3, 2024
1 parent c919800 commit a561a6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions luxonis_ml/data/loaders/luxonis_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ def _load_image_with_annotations(self, idx: int) -> Tuple[np.ndarray, Labels]:
data = json.loads(ann_str)
if type_ == "ArrayAnnotation" and self.dataset.is_remote:
data["path"] = self.dataset.arrays_path / data["path"]
data.update(
{
"class": class_,
"task": task,
"instance_id": instance_id,
}
)
data.update(
{
"class": class_,
"task": task,
"instance_id": instance_id,
}
)
annotation = load_annotation(type_, data)
labels_by_task[task].append(annotation)

Expand Down

0 comments on commit a561a6d

Please sign in to comment.