tatarchm / tangent_conv

Tangent Convolutions for Dense Prediction in 3D
121 stars 26 forks source link

'voxel_down_sample_for_surface_conv' is not defined #3

Closed tejaskhot closed 6 years ago

tejaskhot commented 6 years ago

It is used here, but does not seem to be defined anywhere in the code repository and throws up an error.

https://github.com/tatarchm/tangent_conv/blob/688fac5144c0194de4ece2855afe077e97a07411/util/precompute.py#L73

Same for some of the other functions used in precompute.py

tatarchm commented 6 years ago

I cannot reproduce the issue. This function is provided through the python binding of Open3D.

Could you please provide more details? Did you build Open3D and update the path values in 'path_config.py'? What command do you execute when the error pops up?

tejaskhot commented 6 years ago

Yes, I built Open3D from the repo as suggested and modified the paths in path_config.py. I get the following error when running the precompute script:

git_repos/tangent_conv$ python tc.py experiments/stanford/dhnrgb/config.json --precompute
:: precompute
processing scan: Area_1_conferenceRoom_1, rot: 0
Traceback (most recent call last):
  File "tc.py", line 21, in <module>
    run_precompute(config)
  File "util/precompute.py", line 73, in run_precompute
    pcd_colors_down = voxel_down_sample_for_surface_conv(pcd_colors, multiplier*p.min_cube_size,
NameError: name 'voxel_down_sample_for_surface_conv' is not defined

Also, when I did a code search in the Open3D repo, I could find no results for this function name.

tatarchm commented 6 years ago

Do you execute the script with the same python version as the one used while compiling Open3D?

tejaskhot commented 6 years ago

Yes. On Jul 6, 2018, 11:42 AM -0400, Maxim Tatarchenko notifications@github.com, wrote:

Do you execute the script with the same python version as the one used while compiling Open3D? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tatarchm commented 6 years ago

Could you please provide the contents of your 'path_config.py'?

tejaskhot commented 6 years ago

The contents for /usr1/home/tkhot/git_repos/tangent_conv/util/path_config.py

import sys

open3d_path = '/usr1/home/tkhot/git_repos/Open3D/build/lib/'
tc_path = '/usr1/home/tkhot/git_repos/tangent_conv/'

sys.path.append(open3d_path)
from py3d import *

def get_tc_path():
    return tc_path
tatarchm commented 6 years ago

Looks good to me. @syncle, do you have an idea what the problem may be?

syncle commented 6 years ago

voxel_down_sample_for_surface_conv is defined here: https://github.com/tatarchm/Open3D/src/Python/Core/py3d_pointcloud.cpp#L112 so it should run if you properly clone https://github.com/tatarchm/Open3D.

Also, when I did a code search in the Open3D repo, I could find no results for this function name.

The Open3D repo for tangent convolution is forked repo. Github does not provide code search for forked repo.

tejaskhot commented 6 years ago

A global installation of Open3D from the main repo was getting detected which was causing this issue. Thanks!