CharlesShang / DCNv2

Deformable Convolutional Networks v2 with Pytorch
BSD 3-Clause "New" or "Revised" License
1.28k stars 400 forks source link

Can I build DCNV2 on Windows? #62

Open shoutOutYangJie opened 4 years ago

shoutOutYangJie commented 4 years ago

I tried it, but failed. Is it possible if I run DCNV2 on windows?

AndSonder commented 4 years ago

I think it is impossible because the project will use .so file.

seth-cohen commented 4 years ago

Yes, it is possible I was just able to build. The process was a pain... I hope I capture it all. I am running Windows 10 and used Visual Studio 2017 to build.

After all of that I was able to get it to build by opening up x64 Native Tools Command Prompt for VS 2017 navigating to the repo, activating my conda environment and running python setup.py build develop

luyunxi commented 4 years ago

@seth-cohen Hi, how i add INCLUDE、LIB and PATH on my window PC. THX!

luyunxi commented 4 years ago

@seth-cohen Now, I got the issue:

corecrt.h”: No such file or directory error: command 'D:\software\VS2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

Do you have any solution?

CandyCook commented 3 years ago

@ seth-cohen 现在,我得到了问题:

corecrt.h”:没有此类文件或目录 错误:命令“ D:\ software \ VS2017 \ VC \ Tools \ MSVC \ 14.16.27023 \ bin \ HostX86 \ x64 \ cl.exe”失败,退出状态为2

你有什么解决办法吗?

I still have the same question. How can you solve it?

rathaROG commented 2 years ago

For all latest pytorchs with cuda on Windows: https://github.com/rathaROG/DCNv2_Windows