Skip to content
New issue

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

build problem on Windows10. #24

Open
qiaoba2hao opened this issue Feb 22, 2021 · 2 comments
Open

build problem on Windows10. #24

qiaoba2hao opened this issue Feb 22, 2021 · 2 comments

Comments

@qiaoba2hao
Copy link

qiaoba2hao commented Feb 22, 2021

❓ Questions and Help

python: 3.6.0
torch: 1.7.0

the problem was shown as this:

FAILED: D:/GitHub/LocalFiles/detectron2/build/temp.win-amd64-3.6/Release/GitHub/LocalFiles/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.obj

and the detail is this:

D:/Anaconda3/envs/mainenv/lib/site-packages/torch/include\torch/csrc/jit/ir/ir.h(1347): error: member "torch::jit::ProfileOptionalOp::Kind" may not be initialized

1 error detected in the compilation of "C:/Users/aac/AppData/Local/Temp/tmpxft_000049ec_00000000-7_deform_conv_cuda.cpp1.ii".
deform_conv_cuda.cu
ninja: build stopped: subcommand failed.

If some setting is not prepared? For help.

@qiaoba2hao
Copy link
Author

The answer has been found.

comment "static constexpr Symbol Kind" in "/torch/include/torch/csrc/jit/ir/ir.h"

@mghooi
Copy link

mghooi commented Jun 14, 2021

I am using a windows 10 machine with the following configuration
NVIDIA GeForce GTX 1650Ti
miniconda3
python 3.8
CUDA 11.1
PyTorch 1.8 downloaded directly & installed from PyTorch.org for CUDA-11.1
I have tried to install detectron2 based on the steps given in

https://dgmaxime.medium.com/how-to-easily-install-detectron2-on-windows-10-39186139101c

I have succesfully tested PyTorch installation however in the link given when I come to Step 5
that is

pip install -e .

My setup of detectron2 fails and gives me a huge list of errors that start with

Running setup.py develop for detectron2
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\miniconda3\envs\torch\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\detectron2-windows\setup.py'"'"'; file='"'"'C:\Users\user\detectron2-windows\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: C:\Users\user\detectron2-windows
Complete output (3245 lines):
running develop
running egg_info
writing detectron2.egg-info\PKG-INFO
writing dependency_links to detectron2.egg-info\dependency_links.txt
writing requirements to detectron2.egg-info\requires.txt
writing top-level names to detectron2.egg-info\top_level.txt
reading manifest file 'detectron2.egg-info\SOURCES.txt'

.... which goes on for almost hundreds of lines. Any help will be really appreciated. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants