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

skimage does not have attribute: measure #17

Closed
pratos opened this issue Dec 21, 2022 · 2 comments
Closed

skimage does not have attribute: measure #17

pratos opened this issue Dec 21, 2022 · 2 comments

Comments

@pratos
Copy link

pratos commented Dec 21, 2022

Faced an issue while importing skimage.measure. Related to this issue: scikit-image#4266

Fix was to update the imports in the file -> point_e/util/pc_to_mesh.py:

  • Line no: link
  • From:
import skimage
  • To:
import skimage.measure as skm
  • skimage.__version__ == 0.18.3
@pratos
Copy link
Author

pratos commented Dec 21, 2022

Putting it here coz did not have push access to create a PR and someone might face this same issue.

@pratos pratos closed this as completed Dec 25, 2022
@Andrej730
Copy link

Andrej730 commented Jan 27, 2023

Please leave the issue open - it still persists for anyone who will try to run pointcloud2mesh.ipynb:

     68         volume_np -= np.mean(volume_np)
     69 
---> 70     verts, faces, normals, _ = skimage.measure.marching_cubes(
     71         volume=volume_np,
     72         level=0,
AttributeError: module 'skimage' has no attribute 'measure'

PR with solution is #33. I think it needs to be merged.

Other similar PR is #22 but it solves the issue only for the notebook and won't solve it if someone will try to use marching_cubes_mesh() outside of the notebook. I think this PR can be closed.

@unixpickle @heewooj

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

2 participants