Skip to content

Commit 214e845

Browse files
author
Matt Sokoloff
committed
finish renaming
1 parent 8ce9db4 commit 214e845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/model_diagnostics/model_diagnostics_guide.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
" ### --- replace (start) --- ###\n",
258258
" \n",
259259
" # Build a list of annotation objects from your model inferences\n",
260-
" # image.data is just the numpy array representation of the image\n",
260+
" # image.value is just the numpy array representation of the image\n",
261261
" prediction = model.predict(image.value)\n",
262262
" # Iterate of segmentation channels or instances depending on your model architecture ( or both )\n",
263263
" for instance, (xmin, ymin, xmax, ymax), seg, class_idx in prediction:\n",

labelbox/data/annotation_types/geometry/mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def raster(self,
3939
Returns:
4040
np.ndarray representing only this object
4141
"""
42-
mask = self.mask.data
42+
mask = self.mask.value
4343
mask = np.alltrue(mask == self.color, axis=2).astype(np.uint8)
4444
if height is not None or width is not None:
4545
mask = cv2.resize(mask,

0 commit comments

Comments
 (0)