Skip to content

Commit 99a4fe4

Browse files
author
Matt Sokoloff
committed
draw on contiguous arrays
1 parent f75d1e3 commit 99a4fe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

labelbox/data/annotation_types/geometry/geometry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def get_or_create_canvas(self, height: Optional[int], width: Optional[int],
2727
raise ValueError(
2828
"Must either provide canvas or height and width")
2929
canvas = np.zeros((height, width, 3), dtype=np.uint8)
30+
canvas = np.ascontiguousarray(canvas)
3031
return canvas
3132

3233
@property

0 commit comments

Comments
 (0)