Description
Hello,
Sorry, I am a newbee to Pytorch but got attracted to 3D mesh. I am having very hard time
making Pytorch3D working. I am not sure if I should be asking these questions here.
-
I installed NVidia-Driver 440.59 on Ubuntu 18.04.
-
The Compiler is GCC 8.3
-
nvidia-smi says that CUDA-10.2 is installed.
-
Thereafter, I went to Pytorch library and opted Conda + 10.1 with the given command:
conda install pytorch torchvision cudatoolkit=10.1 -c pytorchEven after 5 hours the above command did not do anything. So I gave it up.
-
I installed pytorch from conda command i.e. pytorch-gpu.
-
All simple examples worked. No issues moving data from CPU-GPU and back.
-
I installed Pytorch3D. No example worked. For example:
(base) :$ python test_utils.py
Traceback (most recent call last):
File "test_utils.py", line 8, in
from pytorch3d.renderer.utils import TensorProperties
File "/home/Disk/Software/Anaconda3/lib/python3.7/site-packages/pytorch3d/renderer/init.py", line 19, in
from .mesh import (
File "/home/Disk/Software/Anaconda3/lib/python3.7/site-packages/pytorch3d/renderer/mesh/init.py", line 3, in
from .rasterize_meshes import rasterize_meshes
File "/home/Disk/Software/Anaconda3/lib/python3.7/site-packages/pytorch3d/renderer/mesh/rasterize_meshes.py", line 9, in
from pytorch3d import _C
ImportError: /home/Disk/Software/Anaconda3/lib/python3.7/site-packages/pytorch3d/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIN3c108BFloat16EEEPKNS_6detail12TypeMetaDataEv
How to resolve these issues? It seems that the problem may be with Pytorch, Cuda, and NVidia Drivers. Installing all these libraries turned out to be a nightmare.
Can someone write how to correctly installed these libraries so that Pytorch3D work as expected.
Thanks