Skip to content

Commit 4e74128

Browse files
committed
nit update to the comment
1 parent 5e3e57f commit 4e74128

File tree

1 file changed

+5
-0
lines changed
  • labelbox/data/serialization/ndjson

1 file changed

+5
-0
lines changed

labelbox/data/serialization/ndjson/label.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from operator import itemgetter
33
from typing import Dict, Generator, List, Tuple, Union
44
from collections import defaultdict
5+
import warnings
56

67
from pydantic import BaseModel
78

@@ -109,6 +110,10 @@ def _create_video_annotations(
109110
yield NDClassification.from_common(annotation, label.data)
110111

111112
elif isinstance(annotation_group[0], VideoObjectAnnotation):
113+
warnings.warn(
114+
"Nested classifications are not currently supported ",
115+
"for video object annotations ",
116+
"and will not import alongside the object annotations.")
112117
segments = []
113118
for start_frame, end_frame in consecutive_frames:
114119
segment = []

0 commit comments

Comments
 (0)