Migrate Python bindings from SWIG to nanobind
This commit is contained in:
@@ -246,7 +246,9 @@ int main(int argc, char **argv)
|
||||
item["room_size"].get<std::array<float, 3>>(),
|
||||
item["room_center"].get<std::array<float, 3>>()};
|
||||
|
||||
auto poses_3d = tri_model->triangulate_poses(poses_2d, cameras, roomparams, joint_names_2d);
|
||||
PoseBatch2D pose_batch_2d = PoseBatch2D::from_nested(poses_2d);
|
||||
auto poses_3d = tri_model->triangulate_poses(
|
||||
pose_batch_2d, cameras, roomparams, joint_names_2d).to_nested();
|
||||
elapsed = std::chrono::high_resolution_clock::now() - stime;
|
||||
times_pose3d.push_back(elapsed.count());
|
||||
|
||||
@@ -322,4 +324,4 @@ int main(int argc, char **argv)
|
||||
write_file(path_results, all_results.dump(0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user