Skip to content

Commit bb9ac32

Browse files
committed
cleanup of code
1 parent b3bf569 commit bb9ac32

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

labelbox/data/serialization/ndjson/label.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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]))

labelbox/data/serialization/ndjson/objects.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Any, Dict, List, Tuple, Union
44
import base64
55
import numpy as np
6-
from py import process
76

87
from pydantic import BaseModel
98
from PIL import Image
@@ -158,7 +157,6 @@ def lookup_segment_object_type(segment: List) -> "NDFrameObjectType":
158157
return result
159158

160159
def to_common(self, feature_schema_id: Cuid):
161-
# print(f"\n to_common in ndsegment {self.keyframes}\n")
162160
return [
163161
keyframe.to_common(feature_schema_id) for keyframe in self.keyframes
164162
]

0 commit comments

Comments
 (0)