jchibane / if-net

Implicit Feature Network (IF-Net) - Codebase
305 stars 59 forks source link

Cannot find reference 'voxelize' in 'imported module data_processing.libvoxelize' #29

Closed jiaqiAA closed 3 years ago

jiaqiAA commented 3 years ago

hi, When I run python data_processing/voxelized_pointcloud_sampling.py -res 128 -num_points 300, I met this problem:

Traceback (most recent call last): File "data_processing/voxelized_pointcloud_sampling.py", line 1, in import implicit_waterproofing as iw File "/home/ubuntu/Documents/if-net/data_processing/implicit_waterproofing.py", line 3, in from data_processing.libmesh.inside_mesh import check_mesh_contains ModuleNotFoundError: No module named 'data_processing' but the data_processing file exists in the project.

jiaqiAA commented 3 years ago

Cannot find reference 'voxelize' in 'imported module data_processing.libvoxelize'

Is the voxelize.py missing from the data_processing/ libvoxelize?

jchibane commented 3 years ago

Hi @ljq2020 ,

I guess something went wrong when installing the library - please follow the 'install' instructions in the README file.

Best, Julian

jiaqiAA commented 3 years ago

Hi,

I follow the 'install' instructions, when I run python setup.py build_ext --inplace, the result is as follows: 1 Do you know how to deal with it?

jiaqiAA commented 3 years ago

I found a error in inside_mesh.py 2

Yxs-160 commented 2 years ago

hi, When I run python data_processing/voxelized_pointcloud_sampling.py -res 128 -num_points 300, I met this problem:

Traceback (most recent call last): File "data_processing/voxelized_pointcloud_sampling.py", line 1, in import implicit_waterproofing as iw File "/home/ubuntu/Documents/if-net/data_processing/implicit_waterproofing.py", line 3, in from data_processing.libmesh.inside_mesh import check_mesh_contains ModuleNotFoundError: No module named 'data_processing' but the data_processing file exists in the project.

Hi, Have you solved this problem? I meet the same problem with you

Bingoang commented 2 years ago

Maybe you could try to add your project path to the voxelized_pointcloud_sampling.py. Add the following code at the top of the file: import sys sys.path.append('/XXXX/if-net-master')

Yxs-160 commented 2 years ago

Maybe you could try to add your project path to the voxelized_pointcloud_sampling.py. Add the following code at the top of the file: import sys sys.path.append('/XXXX/if-net-master')

oh! I have tried it, and it's valid. Thank you very much!