Skip to content

Commit

Permalink
fix: resolve error during rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ktro2828 committed Nov 14, 2024
1 parent 69f6341 commit 0afa3cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t4_devkit/schema/tables/object_ann.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def decode(self) -> NDArrayU8:
"""
counts = base64.b64decode(self.counts)
data = {"counts": counts, "size": self.size}
return cocomask.decode(data).T
return cocomask.decode(data)


@dataclass
Expand Down
12 changes: 10 additions & 2 deletions t4_devkit/tier4.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@

from t4_devkit.common.geometry import is_box_in_image, view_points
from t4_devkit.common.timestamp import sec2us, us2sec
from t4_devkit.dataclass import Box2D, Box3D, LidarPointCloud, RadarPointCloud, Shape, ShapeType
from t4_devkit.dataclass import (
Box2D,
Box3D,
LidarPointCloud,
RadarPointCloud,
SemanticLabel,
Shape,
ShapeType,
)
from t4_devkit.schema import SchemaName, SensorModality, VisibilityLevel, build_schema
from t4_devkit.viewer import Tier4Viewer, distance_color, format_entity

if TYPE_CHECKING:
from t4_devkit.typing import CamIntrinsicType, NDArrayF64, NDArrayU8, VelocityType

from .dataclass import BoxType, SemanticLabel
from .dataclass import BoxType
from .schema import (
Attribute,
CalibratedSensor,
Expand Down

0 comments on commit 0afa3cb

Please sign in to comment.