point-e
point-e copied to clipboard
skimage does not have attribute: measure
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
Putting it here coz did not have push access to create a PR and someone might face this same issue.
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