longcw / RoIAlign.pytorch

RoIAlign & crop_and_resize for PyTorch
554 stars 103 forks source link

Error compiling objects for extension (PyTorch=1.9.0 in anaconda)? #49

Open dominikj2 opened 3 years ago

dominikj2 commented 3 years ago

Hi,

I am getting the following compiling error. Does RoIAlign work with Pytorch 1.9.0?

  File "C:\Users\...\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1682, in _run_ninja_build
    raise RuntimeError(message) from e

RuntimeError: Error compiling objects for extension

Thanks.

voldy12 commented 3 years ago

Here is an egg file I compiled earlier for python 3.7 with torch 1.9 on windows 10 with Cuda 10.2, you should be able to directly import the package.

voldy12 commented 3 years ago

Better yet here's a wheel for the same, just do a pip install roi_align-0.0.2-cp37-cp37m-win_amd64.zip

Here is an egg file I compiled earlier for python 3.7 with torch 1.9 on windows 10 with Cuda 10.2, you should be able to directly import the package.