Deep3DFaceReconstruction icon indicating copy to clipboard operation
Deep3DFaceReconstruction copied to clipboard

import mesh_renderer error

Open diggle1 opened this issue 4 years ago • 9 comments

python=3.6 , tensorflow=1.12, cuda=9.0 I used 'pip install mesh_renderer' to install mesh_renderer. Did anyone meet with this problem when import the mesh_renderer?

image

diggle1 avatar Aug 16 '20 08:08 diggle1

Can you try to use bazel to install tf mesh renderer? It seems that pip install is not stable for different environment.

YuDeng avatar Aug 17 '20 04:08 YuDeng

I have tried to use bazel to install tf mesh renderer? but it always got some problems. firstly, I can't find the rasterize_trianales.so file. Then, I changed a library compiled by another person. but also suffered from the same questions? image

diggle1 avatar Aug 17 '20 11:08 diggle1

You might have to locate the rasterize_trianales.so file in your computer, and then modify the path in tf.load_op_library to your custom path.

YuDeng avatar Aug 18 '20 05:08 YuDeng

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank you very much for your kind help!

diggle1 avatar Aug 18 '20 08:08 diggle1

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

Msj5 avatar Jan 12 '21 07:01 Msj5

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

diggle1 avatar Jan 12 '21 07:01 diggle1

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

RainEggplant avatar Jan 19 '21 08:01 RainEggplant

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

I change it but it makes another error, then I change tensorflow version to 1.15.2 and now it is ok. And the output .so file is in tf_mesh_render/bazel-bin/mesh_render/kernels/ .

xinxxx0124 avatar Jan 21 '21 03:01 xinxxx0124