conansherry / detectron2

detectron2 windows build
Apache License 2.0
223 stars 54 forks source link

Windows 10 detectron2 + pytorch 1.4 DLL Load Failed #6

Closed apiszcz closed 4 years ago

apiszcz commented 4 years ago

Updated to pytorch 1.4. When I try to build detectron2 (which works with pythorch 1.3)

from detectron2 import _C

ImportError: DLL load failed: The specified procedure could not be found.

sean-wade commented 4 years ago

Hi! How did you solve this problem? Thanks!

apiszcz commented 4 years ago

in my case (base) C:\g2\vr>pip install "git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI"

recompile detectron2

sean-wade commented 4 years ago

in my case (base) C:\g2\vr>pip install "git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI"

recompile detectron2

OK, thanks! I'll try it...

hejinsome commented 4 years ago

@apiszcz @a954217436 Hi! did you solve this problem? I meet the same preblem.

solarflarefx commented 4 years ago

@apiszcz When you say "recompile detectron2" do you mean you ran:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" cd detectron2 python setup.py build develop