Skip to content

Commit c502da0

Browse files
committed
nit
1 parent 45961d2 commit c502da0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

labelbox/data/serialization/labelbox_v1/converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def label_generator():
5454
)
5555

5656
if example['Label']:
57+
# Don't construct empty dict
5758
yield LBV1Label(**example).to_common()
5859

5960
return LabelGenerator(data=label_generator())

labelbox/data/serialization/labelbox_v1/label.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ class LBV1LabelAnnotations(LBV1Classifications, LBV1Objects):
1818

1919
def to_common(
2020
self) -> List[Union[ObjectAnnotation, ClassificationAnnotation]]:
21-
# print("\nHELLO WORLD BEFORE TO COMMON\n")
2221
classifications = LBV1Classifications.to_common(self)
2322
objects = LBV1Objects.to_common(self)
24-
# print(f"here...\n{len(objects)} \n")
2523
return [*objects, *classifications]
2624

2725
@classmethod

0 commit comments

Comments
 (0)