We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d1223 commit 30836baCopy full SHA for 30836ba
1 file changed
next_cvat/types/mask.py
@@ -182,7 +182,7 @@ def rle_decode(self) -> np.ndarray:
182
Returns:
183
A numpy 2D array of booleans representing the decoded mask
184
"""
185
- counts = np.array([int(x) for x in self.rle.split(",")])
+ counts = np.array([int(x) for x in self.rle.split(",")] if self.rle != "" else [])
186
total_pixels = self.height * self.width
187
188
# Calculate positions where values change
0 commit comments