daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

ImportError: /data/user/anconda3/envs/neural_test/lib/python3.7/site-packages/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIdEEPKNS_6detail12TypeMetaDataEv #136

Open fcyx opened 1 year ago

fcyx commented 1 year ago

import neural_renderer Traceback (most recent call last): File "", line 1, in File "/data/user/anconda3/envs/neural_test/lib/python3.7/site-packages/neural_renderer/init.py", line 3, in from .load_obj import load_obj File "/data/user/anconda3/envs/neural_test/lib/python3.7/site-packages/neural_renderer/load_obj.py", line 8, in import neural_renderer.cuda.load_textures as load_textures_cuda ImportError: /data/user/anconda3/envs/neural_test/lib/python3.7/site-packages/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIdEEPKNS_6detail12TypeMetaDataEv

The installation problem was finally solved, but the above problems occurred in the import. Can anyone help explain?

Hao-hui commented 1 year ago

I also encountered the same problem. Under what conditions did you solve it?

fcyx commented 1 year ago

I was the problem was due to version mismatch, so I upgraded CUDA to 11, and so did pytorch. After that, you can install other plugins that correspond to them.

Hao-hui commented 1 year ago

@fcyx Thank you. I have solved the problem. (Deployment: CUDA11.1, torch 1.8.1+cu11.1, GeForce RTX 3090)