Skip to content

Commit c18c0f4

Browse files
authored
Merge pull request #284 from Labelbox/ms/large-image-drawing
consistent drawing behavior
2 parents f75d1e3 + 99a4fe4 commit c18c0f4

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)