Skip to content

Commit de9e395

Browse files
author
Val Brodsky
committed
Update comments
1 parent 5b21a91 commit de9e395

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

labelbox/data/annotation_types/collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ def _apply_threaded(self, fns, max_concurrency, *args):
179179

180180
class LabelGenerator(PrefetchGenerator):
181181
"""
182-
A container for interacting with a collection of labels.
182+
A container for interacting with a large collection of labels.
183+
For a small number of labels, just use a list of Label objects.
183184
"""
184185

185186
def __init__(self, data: Generator[Label, None, None], *args, **kwargs):

labelbox/data/serialization/labelbox_v1/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def serialize(
6969
Note that any metric annotations will not be written since they are not defined in the LBV1 format.
7070
7171
Args:
72-
labels: Either a list of Label or a LabelGenerator (LabelCollection)
72+
labels: Either a list of Label objects or a LabelGenerator (LabelCollection)
7373
Returns:
7474
A generator for accessing the labelbox json export representation of the data
7575
"""

labelbox/data/serialization/ndjson/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def serialize(
3636
We will continue to improve the error messages and add helper functions to deal with this.
3737
3838
Args:
39-
labels: Either a list of labels or a LabelGenerator
39+
labels: Either a list of Label objects or a LabelGenerator
4040
Returns:
4141
A generator for accessing the ndjson representation of the data
4242
"""

0 commit comments

Comments
 (0)