Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'registration' is not defined #78

Open
sowmyakavali opened this issue Nov 8, 2022 · 4 comments
Open

NameError: name 'registration' is not defined #78

sowmyakavali opened this issue Nov 8, 2022 · 4 comments

Comments

@sowmyakavali
Copy link

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
Copy link
Author

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()

@tiny-ych-wolf
Copy link

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

@AqibFarooq
Copy link

AqibFarooq commented May 11, 2023

Using opencv 4.6.0.66 didnt solve the issue

@wangzihanggg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants