ObjectDatasetTools icon indicating copy to clipboard operation
ObjectDatasetTools copied to clipboard

NameError: name 'registration' is not defined

Open sowmyakavali opened this issue 3 years ago • 4 comments

Hi @paperstiger @F2Wang ! Please look into this issue,

           ```
Traceback (most recent call last):
  File "compute_gt_poses.py", line 351, in <module>
    pose_graph = full_registration(path, max_correspondence_distance_coarse,
  File "compute_gt_poses.py", line 152, in full_registration
    pose_graph = registration.PoseGraph()
NameError: name 'registration' is not defined
That registration module itself not imported and even don't know that where it is defined.
can you please check it ?

sowmyakavali avatar Nov 08 '22 10:11 sowmyakavali

Hi @paperstiger @F2Wang ! Please look into this issue,

           ```
Traceback (most recent call last):
  File "compute_gt_poses.py", line 351, in <module>
    pose_graph = full_registration(path, max_correspondence_distance_coarse,
  File "compute_gt_poses.py", line 152, in full_registration
    pose_graph = registration.PoseGraph()
NameError: name 'registration' is not defined
That registration module itself not imported and even don't know that where it is defined.
can you please check it ?

I can able to solve this by the following way first do import open3d in this way from open3d import pipelines then replace registration.get_information_matrix_from_point_clouds() with pipelines.registration.get_information_matrix_from_point_clouds()

sowmyakavali avatar Nov 08 '22 11:11 sowmyakavali

You can simply solve this problem by doing those steps: uninstall opencv-python 4.7 and install opencv 4.6.0.66

tiny-ych-wolf avatar May 04 '23 09:05 tiny-ych-wolf

Using opencv 4.6.0.66 didnt solve the issue

AqibFarooq avatar May 11 '23 09:05 AqibFarooq

Hi @paperstiger @F2Wang ! Please look into this issue,

           ```
Traceback (most recent call last):
  File "compute_gt_poses.py", line 351, in <module>
    pose_graph = full_registration(path, max_correspondence_distance_coarse,
  File "compute_gt_poses.py", line 152, in full_registration
    pose_graph = registration.PoseGraph()
NameError: name 'registration' is not defined
That registration module itself not imported and even don't know that where it is defined.
can you please check it ?

I can able to solve this by the following way first do import open3d in this way from open3d import pipelines then replace registration.get_information_matrix_from_point_clouds() with pipelines.registration.get_information_matrix_from_point_clouds()

Thank u very much! Tha saved me.

wangzihanggg avatar Jan 07 '24 16:01 wangzihanggg