autonomousvision / occupancy_networks

This repository contains the code for the paper "Occupancy Networks - Learning 3D Reconstruction in Function Space"
https://avg.is.tuebingen.mpg.de/publications/occupancy-networks
MIT License
1.51k stars 292 forks source link

ModuleNotFoundError: No module named 'im2mesh.utils.libvoxelize.voxelize' #111

Closed alexfrom0815 closed 2 years ago

alexfrom0815 commented 2 years ago

''' ../data/external/ShapeNetCore.v1/02691156 ../data/ShapeNet.build/02691156 Scaling meshes Create depths maps Produce watertight meshes Process watertight meshes Traceback (most recent call last): File "sample_mesh.py", line 11, in from im2mesh.utils import binvox_rw, voxels File "../im2mesh/utils/voxels.py", line 6, in from im2mesh.utils.libvoxelize.voxelize import voxelizemesh ModuleNotFoundError: No module named 'im2mesh.utils.libvoxelize.voxelize' '''

Hello, when I use the ‘build.sh’ script to process my own data, it has the above error, which seems to be caused by cython. I can't determine the specific reason and the solution, can you help me? Thanks in advance!

Mdemerdash commented 2 years ago

Hi @alexfrom0815 , can you tell me how did you solve this issue?

alexfrom0815 commented 2 years ago

Hi @alexfrom0815 , can you tell me how did you solve this issue?

I forgot to run 'python setup.py build_ext --inplace' at first. After that, my problem is solved.

Mdemerdash commented 2 years ago

@alexfrom0815 thank you much