Skip to content

Commit

Permalink
Fix Teaserpp imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MedericFourmy committed Aug 24, 2023
1 parent 664edf6 commit a6e5b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# MegaPose
import happypose
import happypose.pose_estimators.megapose.src.megapose as megapose
# import happypose.pose_estimators.megapose.src.megapose as megapose
import happypose.pose_estimators.megapose.src.megapose.evaluation.evaluation_runner
import happypose.toolbox.datasets.datasets_cfg
import happypose.toolbox.inference.utils
Expand Down Expand Up @@ -55,7 +55,6 @@
)
from happypose.toolbox.datasets.datasets_cfg import make_object_dataset

# from happypose.pose_estimators.megapose.src.megapose.inference.teaserpp_refiner import TeaserppRefiner
from happypose.toolbox.lib3d.rigid_mesh_database import MeshDataBase
from happypose.toolbox.utils.distributed import get_rank, get_tmp_dir
from happypose.toolbox.utils.logging import get_logger
Expand Down Expand Up @@ -165,6 +164,7 @@ def run_eval(
if cfg.inference.depth_refiner == "icp":
depth_refiner: Optional[DepthRefiner] = ICPRefiner(mesh_db, renderer)
elif cfg.inference.depth_refiner == "teaserpp":
from happypose.pose_estimators.megapose.src.megapose.inference.teaserpp_refiner import TeaserppRefiner
depth_refiner = TeaserppRefiner(mesh_db, renderer)
else:
depth_refiner = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from happypose.pose_estimators.megapose.src.megapose.inference.refiner_utils import compute_masks, numpy_to_open3d
from happypose.pose_estimators.megapose.src.megapose.inference.types import PoseEstimatesType
from happypose.toolbox.lib3d.rigid_mesh_database import BatchedMeshes
from happypose.pose_estimators.megapose.src.megapose.panda3d_renderer.panda3d_batch_renderer import Panda3dBatchRenderer
from happypose.pose_estimators.megapose.src.megapose.panda3d_renderer.types import Panda3dLightData
from happypose.toolbox.renderer.panda3d_batch_renderer import Panda3dBatchRenderer
from happypose.toolbox.renderer.types import Panda3dLightData
from happypose.toolbox.visualization.meshcat_utils import get_pointcloud


Expand Down

0 comments on commit a6e5b9c

Please sign in to comment.