@@ -105,7 +105,7 @@ class BoxAnnotation(Annotation): # pylint: disable=R0902
105105 reference_id="image_1",
106106 annotation_id="image_1_car_box_1",
107107 metadata={"vehicle_color": "red"},
108- embedding_vector=[0.1423, 1.432, ...3.829],
108+ embedding_vector=[0.1423, 1.432, ..., 3.829],
109109 )
110110
111111 Parameters:
@@ -310,7 +310,7 @@ class PolygonAnnotation(Annotation):
310310 reference_id="image_2",
311311 annotation_id="image_2_bus_polygon_1",
312312 metadata={"vehicle_color": "yellow"},
313- embedding_vector=[0.1423, 1.432, ...3.829],
313+ embedding_vector=[0.1423, 1.432, ..., 3.829],
314314 )
315315
316316 Parameters:
@@ -691,7 +691,7 @@ class SegmentationAnnotation(Annotation):
691691 from nucleus import SegmentationAnnotation
692692
693693 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",
695695 annotations=[
696696 Segment(label="grass", index="1"),
697697 Segment(label="road", index="2"),
@@ -704,7 +704,8 @@ class SegmentationAnnotation(Annotation):
704704
705705 Parameters:
706706 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,
708709 with each pixel value ranging from [0, N), where N is the number of
709710 possible classes (for semantic segmentation) or instances (for instance
710711 segmentation).
0 commit comments