Fictionarry / ER-NeRF

[ICCV'23] Efficient Region-Aware Neural Radiance Fields for High-Fidelity Talking Portrait Synthesis
https://fictionarry.github.io/ER-NeRF/
MIT License
1.08k stars 137 forks source link

raymarching 安装问题,没有raymarching模块,所有我安装,出错信息如下,如何解决? #89

Open icommonweal2023 opened 1 year ago

icommonweal2023 commented 1 year ago

(geneface) G:\SplitterDemo\digiPerson\ER_NeRF\raymarching>python setup.py build_ext --inplace nt 0 running build_ext building '_raymarching_face' extension Emitting ninja build file G:\SplitterDemo\digiPerson\ER_NeRF\raymarching\build\temp.win-amd64-cpython-39\Release\build.ninja... Compiling objects... -----------------------------------------------------lee Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.11.1.git.kitware.jobserver-1 "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:E:\Anaconda3\envs\geneface\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\lib/x64" /LIBPATH:E:\Anaconda3\envs\geneface\libs /LIBPATH:E:\Anaconda3\envs\geneface /LIBPATH:E:\Anaconda3\envs\geneface\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:F:\Windows Kits\10\lib\10.0.22000.0\ucrt\x64" "/LIBPATH:F:\Windows Kits\10\lib\10.0.22000.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda_cu.lib torch_cuda_cpp.lib /EXPORT:PyInit__raymarching_face G:\SplitterDemo\digiPerson\ER_NeRF\raymarching\build\temp.win-amd64-cpython-39\Release\SplitterDemo\digiPerson\ER_NeRF\raymarching\src\bindings.obj G:\SplitterDemo\digiPerson\ER_NeRF\raymarching\build\temp.win-amd64-cpython-39\Release\SplitterDemo\digiPerson\ER_NeRF\raymarching\src\raymarching.obj /OUT:build\lib.win-amd64-cpython-39_raymarching_face.cp39-win_amd64.pyd /IMPLIB:G:\SplitterDemo\digiPerson\ER_NeRF\raymarching\build\temp.win-amd64-cpython-39\Release\SplitterDemo\digiPerson\ER_NeRF\raymarching\src_raymarching_face.cp39-win_amd64.lib LINK : fatal error LNK1181: 无法打开输入文件“G:\SplitterDemo\digiPerson\ER_NeRF\raymarching\build\temp.win-amd64-cpython-39\Release\SplitterDemo\digiPerson\ER_NeRF\raymarching\src\bindings.obj” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe' failed with exit code 1181

owenmao commented 1 year ago

试试linux下面运行 gcc更新到11 cuda版本和pytorch以及pytorch3d要对应 (已经运行成功:ubuntu 22.04 cuda11.8, pytorch2.0.1, pytorch3d 0.7.4)

jushe commented 11 months ago

试试linux下面运行 gcc更新到11 cuda版本和pytorch以及pytorch3d要对应 (已经运行成功:ubuntu 22.04 cuda11.8, pytorch2.0.1, pytorch3d 0.7.4)

请问按照官方给的安装教程,运行main的时候提示CUDA_HOME没有设置导致无法构建raymarching,这里是一定要完整安装cuda吗?只有conda的虚拟cudatoolkit不行吗?

FredWe commented 11 months ago

可以试试按照pytorch3d的wiki直接用conda装pytorch3d

jushe commented 11 months ago

试试linux下面运行 gcc更新到11 cuda版本和pytorch以及pytorch3d要对应 (已经运行成功:ubuntu 22.04 cuda11.8, pytorch2.0.1, pytorch3d 0.7.4)

请问按照官方给的安装教程,运行main的时候提示CUDA_HOME没有设置导致无法构建raymarching,这里是一定要完整安装cuda吗?只有conda的虚拟cudatoolkit不行吗?

我最后还是下载了个驱动安装,只安装了其中的cuda库设置CUDA_HOME后可以正常使用

nicongger commented 11 months ago

试试linux下面运行 gcc更新到11 cuda版本和pytorch以及pytorch3d要对应 (已经运行成功:ubuntu 22.04 cuda11.8, pytorch2.0.1, pytorch3d 0.7.4)

能问下tensorflow是按教程中安装的2.8.0吗?我安装后import tensorflow以及在“python data_utils/process.py data//.mp4“这步会出现这个: 图片

fengjeike commented 10 months ago

pip install ./raymarching 试下这个

raymondren1982 commented 5 months ago

hi, find the setup.py under the directory, change as following: cmdclass={ 'build_ext': BuildExtension.with_options(use_ninja=False),

jt-z commented 5 months ago

pip install ./raymarching 试下这个

确实手动安装后可以了!

yanxiaxu commented 4 months ago

NeRF/freqencoder NeRF/gridencoder NeRF/raymarching NeRF/shencoder

以上模块安装异常,可以尝试修改setup.py内容

-std=c++14 修改为 -std=c++17

'build_ext': BuildExtension 修改为 'build_ext': BuildExtension.with_options(use_ninja=False),
wangqiang9 commented 3 weeks ago

conda install pytorch3d -c pytorch3d -c pytorch -c conda-forge