Skip to content

Commit dfc162d

Browse files
committed
fix bug
1 parent 05ec2fc commit dfc162d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luxonis_ml/data/datasets/luxonis_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _get_metadata(self) -> Metadata:
629629
source_data = metadata_json["source"]
630630
if isinstance(source_data, dict):
631631
components = source_data.get("components", {})
632-
if isinstance(components, dict):
632+
if isinstance(components, dict) and len(components) == 1:
633633
new_components = {
634634
"image": LuxonisComponent(
635635
**next(iter(components.values()))

0 commit comments

Comments
 (0)