Migrate Python bindings from SWIG to nanobind

This commit is contained in:
2026-03-11 21:56:30 +08:00
parent 0ec6a85921
commit d7769794fb
20 changed files with 997 additions and 243 deletions
+4 -2
View File
@@ -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;
}
}