NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.13k stars 223 forks source link

i found that the version of VS2019 may have to be lower than 16.11 #40

Open cx-zzz opened 2 years ago

cx-zzz commented 2 years ago

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4 the fail was like "ninja -v "and" missing a '(' "

Wasp3r commented 2 years ago

Thank you very much for pointing it out. Thanks to you I could at least make it work

jnm26 commented 2 years ago

Just tried with 16.9.4 as suggested, same error "Underlying buffer has been detached". I made sure to use the developer command prompt for this revision and also removed vs 16.11.x.

EDIT: Actually, 16.9.4 seems to work, but I had to set env variable set DISTUTILS_USE_SDK=1

You can see a message about it in the stack trace. I had set this using other VS versions and it never worked, but now using 16.9.4 and setting that env variable, it built

cx-zzz commented 2 years ago

If you change the _run_ninja_build in cpp_extension.py (in your_env/Lib/site-packages/torch/utils), just change it back, it may work. The code need to be: command = ['ninja', '-v'] if this does not work , you may ask this question in tinycuda page .

huvers commented 2 years ago

This unblocked me as well - thank you.

zhangzhenfengjy commented 2 years ago

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4 the fail was like "ninja -v "and" missing a '(' "

how to download 16.9.4?thank you very much.

cx-zzz commented 2 years ago

https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers

zhangzhenfengjy commented 2 years ago

https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers

Thank you very much for your help, and I would like to ask what happened to the OPenSSL error when pulling from git? Can you give me some help?

zhangzhenfengjy commented 2 years ago

我尝试在我的计算机上安装 nvdiffrec 并且在 VS 版本为 16.11 时失败,当我重新安装 VS2019 16.9.4 时它工作 失败就像“ninja -v”和“缺少一个 '('”

How did you solve this problem? Thank you very much for your help, I can offer you some compensation.

cx-zzz commented 2 years ago

看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了

zhangzhenfengjy commented 2 years ago

感谢大哥的回复,我可以加您好友吗?如果您有时间的话向向您详细问一下?因为我现在很需要这个工程。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月28日(星期二) 晚上9:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [NVlabs/nvdiffrec] i found that the version of VS2019 may have to be lower than 16.11 (Issue #40)

看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

cx-zzz commented 2 years ago

感谢大哥的回复,我可以加您好友吗?如果您有时间的话向向您详细问一下?因为我现在很需要这个工程。 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月28日(星期二) 晚上9:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [NVlabs/nvdiffrec] i found that the version of VS2019 may have to be lower than 16.11 (Issue #40) 看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

行,你把wx或者qq发我邮箱吧 cx19980514@outlook.com

Firesampo commented 2 years ago

You need to install the latest CUDA version (11.7) + add the correct environment variables, that solved the problem for me.

Check this out, scroll down until you find the part with 11.7 instructions:

https://github.com/NVlabs/tiny-cuda-nn/issues/110

carlosedubarreto commented 1 year ago

I had problems and did the tips posted here (install cuda 11.7, vstudio 167.9.4) but even doing that id didnt work. I found that I was running the wrong developer command from visual studio. If you still have problems try pasting this command on your prompt and try again

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64