You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mmdet/ops/nms/src/cuda/nms_kernel.cu:6:10: fatal error: THC/THC.h: No such file or directory
6 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/setuptools/init.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/torch/utils/cpp_extension.py:387: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils bac
kend.
warnings.warn(msg.format('we could not find ninja.'))
error: command '/usr/local/cuda-11.3/bin/nvcc' failed with exit code 1
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/wy1108/anaconda3/envs/obbdetection/bin/python -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/mnt/e/OBBDetection-master/OBBDetection/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /mnt/e/OBBDetection-master/OBBDetection/
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered:
I have the same question. It looks like OBBdetection was based on mmdetection2.2.0, which cis not compatible with CUDA 11.3. I don't know the solution until now.
Checklist
Describe the issue
command:
conda create -n obbdetection python=3.8 -y
conda activate obbdetection
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
git clone https://github.com/jbwang1997/OBBDetection.git --recursive
cd OBBDetection
cd BboxToolkit
pip install -v -e . # or "python setup.py develop"
cd ..
pip install mmcv-full==1.4.8 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html
pip install -r requirements/build.txt
pip install mmpycocotools
pip install -v -e . (error occurred)最后编译出现问题,如下
mmdet/ops/nms/src/cuda/nms_kernel.cu:6:10: fatal error: THC/THC.h: No such file or directory
6 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
/home/wy1108/anaconda3/envs/obbdetection/lib/python3.8/site-packages/setuptools/init.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
kend.
warnings.warn(msg.format('we could not find ninja.'))
error: command '/usr/local/cuda-11.3/bin/nvcc' failed with exit code 1
error: subprocess-exited-with-error
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered: