We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue reports how to install Detectron2 on Windows 10, based on my previous experience.
Note that all were maybe not necessary but they were all installed at the time the installation of Detectron2 worked.
Additionally, you'd like to add these to your PATH system variable:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\
C:\Program Files (x86)\Windows Kits\10\bin\10.VERSION\x86
Open a prompt in your conda environment (e.g. apt_tb) and type the following commands :
pip install cython pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI git clone https://github.com/facebookresearch/detectron2.git cd detectron2 git checkout tags/v0.6 cd ..
Then, open the file setup.py in detectron2 and change the following, starting at line 72:
setup.py
if not is_rocm_pytorch: define_macros += [("WITH_CUDA", None)] extra_compile_args["nvcc"] = [ "-O3", "-DCUDA_HAS_FP16=1", "-D__CUDA_NO_HALF_OPERATORS__", "-D__CUDA_NO_HALF_CONVERSIONS__", "-D__CUDA_NO_HALF2_OPERATORS__" ]
to
if not is_rocm_pytorch: define_macros += [("WITH_CUDA", None)] extra_compile_args["nvcc"] = [ "-O3", "-DCUDA_HAS_FP16=1", "-D__CUDA_NO_HALF_OPERATORS__", "-D__CUDA_NO_HALF_CONVERSIONS__", "-D__CUDA_NO_HALF2_OPERATORS__", "-DWITH_CUDA" ]
Eventually, finish the installation by typing this command in your prompt:
pip install -e detectron2
Hopefully, Detectron2 should be successfully installed.
The text was updated successfully, but these errors were encountered:
JonathanSamelson
No branches or pull requests
This issue reports how to install Detectron2 on Windows 10, based on my previous experience.
Prerequisites
Note that all were maybe not necessary but they were all installed at the time the installation of Detectron2 worked.
Additionally, you'd like to add these to your PATH system variable:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\
C:\Program Files (x86)\Windows Kits\10\bin\10.VERSION\x86
where VERSION is the latest version availableInstallation
Open a prompt in your conda environment (e.g. apt_tb) and type the following commands :
Then, open the file
setup.py
in detectron2 and change the following, starting at line 72:to
Eventually, finish the installation by typing this command in your prompt:
pip install -e detectron2
Hopefully, Detectron2 should be successfully installed.
The text was updated successfully, but these errors were encountered: