nv-tlabs / NKSR

[CVPR 2023 Highlight] Neural Kernel Surface Reconstruction
https://research.nvidia.com/labs/toronto-ai/NKSR
Other
735 stars 43 forks source link

recons_by_chank error #27

Closed vrahnos3 closed 1 year ago

vrahnos3 commented 1 year ago

I got this error while i am trying to run recons_by_chank.py in my owndata:

/home/panosvrach/PythonEnv/nksr/bin/python3.8 /home/panosvrach/Desktop/NKSR/examples/recons_by_chunk.py 07-10 16:10:24 (o3d.py:20) [WARNING] Customized build of Open3D is not detected, to resolve this you can do: (recommended, using customized Open3D that enables view sync, animation, ...)

pip install python-pycg[full] -f https://pycg.s3.ap-northeast-1.amazonaws.com/packages/index.html

WARNING - 2023-07-10 16:10:24,553 - o3d - Customized build of Open3D is not detected, to resolve this you can do: (recommended, using customized Open3D that enables view sync, animation, ...)

pip install python-pycg[full] -f https://pycg.s3.ap-northeast-1.amazonaws.com/packages/index.html

[] nksr.chunk: 0it [00:00, ?it/s] Traceback (most recent call last): File "/home/panosvrach/Desktop/NKSR/examples/recons_by_chunk.py", line 30, in field = reconstructor.reconstruct(input_xyz, input_normal, detail_level=None, chunk_size=50.0, preprocess_fn=nksr.get_estimate_normal_preprocess_fn(64, 85.0)) File "/home/panosvrach/PythonEnv/nksr/lib/python3.8/site-packages/nksr/init.py", line 194, in reconstruct return self.reconstruct_by_chunk( File "/home/panosvrach/PythonEnv/nksr/lib/python3.8/site-packages/nksr/init.py", line 350, in reconstruct_by_chunk return FusedField(all_fields, all_transforms) File "/home/panosvrach/PythonEnv/nksr/lib/python3.8/site-packages/nksr/fields/fused_field.py", line 29, in init svh = SparseFeatureHierarchy.joined([f.svh for f in fields], transforms) File "/home/panosvrach/PythonEnv/nksr/lib/python3.8/site-packages/nksr/svh.py", line 317, in joined ref_svh = svhs[0] IndexError: list index out of range

Process finished with exit code 1

Aynone can help?

heiwang1997 commented 1 year ago

It seems that your point cloud is empty. Can you try visualizing your input here?

vrahnos3 commented 1 year ago

It was my fault. I forgot to scale the geometry of my dataset as like buda example. Thanks for your reply. I am closing this issue!