Xharlie / pointnerf

Point-NeRF: Point-based Neural Radiance Fields
Other
1.1k stars 127 forks source link

Can everyone successfully configure the environment with torch==1.8.1+cu10.2? #70

Open xrr-233 opened 1 year ago

xrr-233 commented 1 year ago

When I run the test code, there are several extra packages to install and I am stuck at the step of installing inplace_abn. I cannot install it by either using pip or directly run setup.py. It seems that the problem is caused by the high torch version.

With torch==1.5.0, inplace_abn can be compiled without error.

When it comes to 1.8.1, it will throw an error about ['ninja','-v'] Some blog article tells that we can manually change '-v' to '--version' but it will throw new errors

g++: error: ~/inplace_abn/build/temp.linux-x86_64-cpython-37/src/inplace_abn.o: No such file or directory
g++: error: ~/inplace_abn/build/temp.linux-x86_64-cpython-37/src/inplace_abn_cpu.o: No such file or directory
g++: error: ~/inplace_abn/build/temp.linux-x86_64-cpython-37/src/inplace_abn_cuda.o: No such file or directory
g++: error: ~/inplace_abn/build/temp.linux-x86_64-cpython-37/src/utils.o: No such file or directory
error: command '/usr/bin/g++' failed with exit code 1

By using torch==1.5.0, we can get these src files to subtitute these vacancies of files. But later, a new error occurs like: ImportError: ~/anaconda3/envs/pointnerf/lib/python3.7/site-packages/inplace_abn-1.1.1.dev6+gd2728c8-py3.7-linux-x86_64.egg/inplace_abn/_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceISt7complexIdEEEPKNS_6detail12TypeMetaDataEv

Then I have no ideas. Anyone who succeeded in the compilation process can help?

naga-k commented 1 year ago

This did not work for me. I am trying to use later versions (pytorch 2.01.) but still getting errors.