@@ -29,8 +29,6 @@ def to_common(self) -> LabelGenerator:
2929 grouped_annotations [annotation .data_row .id ].append (annotation )
3030 return LabelGenerator (
3131 data = self ._generate_annotations (grouped_annotations ))
32- # c = LabelGenerator(data=self._generate_annotations(grouped_annotations))
33- # print(next(c), "Wefwefweefw\n")
3432
3533 @classmethod
3634 def from_common (cls ,
@@ -50,8 +48,6 @@ def _generate_annotations(
5048 annots = []
5149 for annotation in annotations :
5250 if isinstance (annotation , NDSegments ):
53- # b = NDSegments.to_common(annotation, annotation.schema_id)
54- # print(type(b), b)
5551 annots .extend (
5652 NDSegments .to_common (annotation , annotation .schema_id ))
5753
@@ -65,7 +61,6 @@ def _generate_annotations(
6561 else :
6662 raise TypeError (
6763 f"Unsupported annotation. { type (annotation )} " )
68- # print(type(annots[0]), annots[0])
6964 data = self ._infer_media_type (annotations )(uid = data_row_id )
7065 yield Label (annotations = annots , data = data )
7166
@@ -101,7 +96,6 @@ def _create_video_annotations(
10196 (VideoClassificationAnnotation , VideoObjectAnnotation )):
10297 video_annotations [annot .feature_schema_id ].append (annot )
10398
104- #break this into two groups, classifications, and then objects
10599 for annotation_group in video_annotations .values ():
106100 consecutive_frames = cls ._get_consecutive_frames (
107101 sorted ([annotation .frame for annotation in annotation_group ]))
0 commit comments