@@ -105,7 +105,7 @@ class BoxAnnotation(Annotation): # pylint: disable=R0902
105
105
reference_id="image_1",
106
106
annotation_id="image_1_car_box_1",
107
107
metadata={"vehicle_color": "red"},
108
- embedding_vector=[0.1423, 1.432, ...3.829],
108
+ embedding_vector=[0.1423, 1.432, ..., 3.829],
109
109
)
110
110
111
111
Parameters:
@@ -310,7 +310,7 @@ class PolygonAnnotation(Annotation):
310
310
reference_id="image_2",
311
311
annotation_id="image_2_bus_polygon_1",
312
312
metadata={"vehicle_color": "yellow"},
313
- embedding_vector=[0.1423, 1.432, ...3.829],
313
+ embedding_vector=[0.1423, 1.432, ..., 3.829],
314
314
)
315
315
316
316
Parameters:
@@ -691,7 +691,7 @@ class SegmentationAnnotation(Annotation):
691
691
from nucleus import SegmentationAnnotation
692
692
693
693
segmentation = SegmentationAnnotation(
694
- mask_url="s3://your-bucket-name/segmentation-masks/image_2_mask_id1 .png",
694
+ mask_url="s3://your-bucket-name/segmentation-masks/image_2_mask_id_1 .png",
695
695
annotations=[
696
696
Segment(label="grass", index="1"),
697
697
Segment(label="road", index="2"),
@@ -704,7 +704,8 @@ class SegmentationAnnotation(Annotation):
704
704
705
705
Parameters:
706
706
mask_url (str): A URL pointing to the segmentation prediction mask which is
707
- accessible to Scale, or a local path. The mask is an HxW int8 array saved in PNG format,
707
+ accessible to Scale. This "URL" can also be a path to a local file.
708
+ The mask is an HxW int8 array saved in PNG format,
708
709
with each pixel value ranging from [0, N), where N is the number of
709
710
possible classes (for semantic segmentation) or instances (for instance
710
711
segmentation).
0 commit comments