Skip to content

Commit

Permalink
remove deprecated box type
Browse files Browse the repository at this point in the history
  • Loading branch information
mxh1999 committed Jan 22, 2024
1 parent 7b959f8 commit b2363d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions embodiedscan/structures/bbox_3d/box_3d_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
from torch import Tensor

from .base_box3d import BaseInstance3DBoxes
# from .cam_box3d import CameraInstance3DBoxes
# from .depth_box3d import DepthInstance3DBoxes
# from .lidar_box3d import LiDARInstance3DBoxes
from .utils import limit_period


Expand Down
12 changes: 0 additions & 12 deletions embodiedscan/structures/bbox_3d/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,9 @@ def get_box_type(box_type: str) -> Tuple[type, int]:
from .box_3d_mode import Box3DMode
from .euler_depth_box3d import EulerDepthInstance3DBoxes
box_type_lower = box_type.lower()
# if box_type_lower == 'lidar':
# box_type_3d = LiDARInstance3DBoxes
# box_mode_3d = Box3DMode.LIDAR
# elif box_type_lower == 'camera':
# box_type_3d = CameraInstance3DBoxes
# box_mode_3d = Box3DMode.CAM
# elif box_type_lower == 'depth':
# box_type_3d = DepthInstance3DBoxes
# box_mode_3d = Box3DMode.DEPTH
if box_type_lower == 'euler-depth':
box_type_3d = EulerDepthInstance3DBoxes
box_mode_3d = Box3DMode.EULER_DEPTH
# elif box_type_lower == 'euler-camera':
# box_type_3d = EulerCameraInstance3DBoxes
# box_mode_3d = Box3DMode.EULER_CAM
else:
raise ValueError(
'Only "box_type" of "camera", "lidar", "depth", "euler"'
Expand Down

0 comments on commit b2363d2

Please sign in to comment.