Skip to content

Commit 271586e

Browse files
committed
test running cosypose inference with depth in ObservationTensor
1 parent 2eb171d commit 271586e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_cosypose_inference.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ def setUp(self) -> None:
4242
self.device = "cpu"
4343

4444
rgb, depth, camera_data = load_observation_example(data_dir, load_depth=True)
45-
# TODO: cosypose forward does not work if depth is loaded detection contrary to megapose
4645
self.observation = ObservationTensor.from_numpy(
47-
rgb, depth=None, K=camera_data.K
46+
rgb, depth=depth, K=camera_data.K
4847
).cpu()
4948

5049
self.detector = load_detector(
@@ -62,7 +61,7 @@ def setUp(self) -> None:
6261
]
6362
)
6463
mesh_db = MeshDataBase.from_object_ds(self.object_dataset)
65-
self.mesh_db_batched = mesh_db.batched().to("cpu")
64+
self.mesh_db_batched = mesh_db.batched().cpu()
6665

6766
@pytest.mark.parametrize("device", DEVICE)
6867
@pytest.mark.order(3)

0 commit comments

Comments
 (0)