[Python] Colab crushed while calling g2o python function

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    Actually I am trying to optimize openpose keypoints using g2o-python.

    Snippet of my code

    def create_keypoint_vertex(self, point_id, point):
    """Create a vertex for a keypoint"""
    v = g2o.VertexPointXY()
    v.set_id(point_id)
    v.set_estimate(point[:2])
    v.set_marginalized(False)

    if point[2] > 0.5: # High confidence points are fixed
    v.set_fixed(True)
    return v


    when I calling v.set_estimate(point[:2]) it crushing the Colab saying unknown error occurred.

    Continue reading...

Compartilhe esta Página