We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846a682 commit d192b92Copy full SHA for d192b92
labelbox/predictions.py
@@ -38,7 +38,7 @@ class names.
38
for polygon, pixel_value in rasterio.features.shapes(segmentation_map):
39
pixel_value = int(pixel_value)
40
# ignore background (denoted by pixel value 0)
41
- if pixel_value in legend and pixel_value is not 0:
+ if pixel_value in legend and pixel_value != 0:
42
xy_list = polygon['coordinates'][0]
43
44
if max_num_points:
0 commit comments