Skip to content

Commit e5d196f

Browse files
author
gdj0nes
committed
remove method
1 parent 8ad5b45 commit e5d196f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

labelbox/data/annotation_types/data/raster.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ def from_2D_arr(cls, arr: Union[TypedArray[Literal['uint8']],
5151
arr = np.stack((arr,) * 3, axis=-1)
5252
return cls(arr=arr, **kwargs)
5353

54-
@classmethod
55-
def from_2D_array(cls, arr: TypedArray[Literal['uint8']], **kwargs):
56-
57-
if len(arr.shape) != 2:
58-
raise ValueError(
59-
f"Found array with shape {arr.shape}. Expected two dimensions ([W,H])"
60-
)
61-
arr = np.stack((arr,) * 3, axis=-1)
62-
return cls(arr=arr, **kwargs)
63-
6454
def bytes_to_np(self, image_bytes: bytes) -> np.ndarray:
6555
"""
6656
Converts image bytes to a numpy array

0 commit comments

Comments
 (0)