-
Notifications
You must be signed in to change notification settings - Fork 909
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
Tensorflow 2.0 - Segmentation fault #168
Comments
Further information from the core dump file:
|
If it helps, I have written a wrapper for the pointnet++ layers to work as |
@dgriffiths3 Thank you very much for sharing your repository - great work. But could you may give me some more information about your system setup, because I think it's a problem with the compiled tf_ops functions. So, could you may provide me the following information:
Many thanks |
@ffent I am using: I am installed tensorflow with the precompiled binaries through pip. If you are having an error with the compile script feel free to raise an issue on the repository. |
Not sure if this is related or helpful, but I found that handing wrong tensor shapes to the tf_ops can cause segmentation faults (e.g. if the higher features you hand into the fp_module only has shape [batch_size, npoints] instead of [batch_size, npoints, nchannels]). So it might be worth it checking if the shapes of your tensors are correct. Also, for me, the compiled tf_ops worked under tensorflow 2 and tensorflow 1.13, but not with 1.14. However, without using the model api. |
Usually a 'segmentation fault' error when running a c++ ops in python is just an error in the c++ code which isn't specified, so could be anything. As @akloss says, wrong shape or wrong data type is a likely cause. |
Tanks to the suggestions from @dgriffiths3 I was able to compile the tf_ops and integrate them under tensorflow 2.0. Please have a look at his repository. My final docker setup is the following:
Host System
Therefore I will close this issue. |
Could you provide a copy of a working docker configuration? |
@chongma you can have a look at the RadarSeg repository. There you can find a working Dockerfile as well as some further information on how to compile the tf_ops on different environments (here). This repository also provides a complete implementation of all PointNet++ layers as TensorFlow 2.x compatible Keras layers. |
Receiving a segmentation fault when running any of the tf_ops functions as part of a model.
Docker container
Host System
Issue details
I successfully compiled the tf_ops functions inside the docker container following the instructions and comment of the pull request #154 . I tried to follow the instructions of this post #152 , but was not able to compile the files with gcc 7.4.0 and was not able to install gcc 7.3.1, so i downgraded to gcc/g++ 4.8.
After compiling the tf_ops function, I was able to run the functions in python and was even able to integrate them in a custom keras.layers.Layer class and running this successfully. But if I try to run this layer or function in a tf.model I will receive a segmentation fault.
See code samples below.
Works with a single layer
Output
Fails with a model:
Output:
Has anyone an idea how to fix this in tensorflow 2.0.0?
Thanks
The text was updated successfully, but these errors were encountered: