Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in training ( tf_sampling_so.so ) #25

Open
ahmedwael19 opened this issue May 8, 2019 · 3 comments
Open

Error in training ( tf_sampling_so.so ) #25

ahmedwael19 opened this issue May 8, 2019 · 3 comments

Comments

@ahmedwael19
Copy link

Hello,
I am trying to run the code but no luck so far.
I am using Python 3 , CUDA 10, and Tensorflow 1.13.1

I compiled all the files with warnings but no errors.
However, when I try to run the code (training) , I get the following error.

Traceback (most recent call last): File "main.py", line 10, in <module> import model_generator2_2new6 as MODEL_GEN File "/home/ahmed/PU-Net/code/model_generator2_2new6.py", line 3, in <module> from utils.pointnet_util import pointnet_sa_module,pointnet_fp_module File "/home/ahmed/PU-Net/code/utils/pointnet_util.py", line 9, in <module> from tf_ops.sampling.tf_sampling import farthest_point_sample, gather_point File "/home/ahmed/PU-Net/code/tf_ops/sampling/tf_sampling.py", line 12, in <module> sampling_module=tf.load_op_library(os.path.join(BASE_DIR, 'tf_sampling_so.so')) File "/home/ahmed/.local/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /home/ahmed/PU-Net/code/tf_ops/sampling/tf_sampling_so.so: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

I am sure that the files are all there and everything.
I have also tried compling _abi instead of the original sh files, but no luck also.

Would really appreciate your response.

@yulequan
Copy link
Owner

yulequan commented May 9, 2019

Hi, after some simple search, this problem may be related to the version of Cmake and ABI. See this link [https://github.com/lmb-freiburg/demon/issues/26]. Maybe the simple way is downgrading the TF version.

@ahmedwael19
Copy link
Author

Thank you so much for your reply.
Is there is a way to downgrade the TF version without breaking the whole environment ( CUDA, GPU drivers, etc) ?

@yulequan
Copy link
Owner

yulequan commented May 9, 2019

I think you can use virtual environments, such as Anaconda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants