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

Cannot open include file: 'THC/THC.h': No such file or directory #607

Closed
boatman-27 opened this issue Sep 28, 2023 · 7 comments
Closed

Cannot open include file: 'THC/THC.h': No such file or directory #607

boatman-27 opened this issue Sep 28, 2023 · 7 comments

Comments

@boatman-27
Copy link

Hey! so i been trying to install yolov5-obb as mentioned in step e in the install.md file in the docs folders. however, it doesnt work i installed CUDA toolkit 11.7 with cuDNN v8.9.4 and i installed pyTorch as explained in the pystorch start locally website but i always get stuck in the step e especially "python setup.py develop #or "pip install -v -e ." ". if anyone can lmk what i did wrong or which cuda i should use please lmk. i get these 2 errors: fatal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2.

any help would be appreciated.
image_2023-09-28_151459605
image_2023-09-28_151506914

@Chenjiangwen
Copy link

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

@boatman-27
Copy link
Author

boatman-27 commented Oct 9, 2023

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

I did yeah. can you please tell me the steps you followed and what correct virtual environment i should the compile with?
i made a virtual environment and it created a folder outside the main yolov5_obb folder. then i activated it and installed pytorch with this command:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
then cd yolov5_obb
then pip install -r requirements.txt
then cd utils/nms_rotated
then pip install -v -e .

and im still getting the same error:
atal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory
poly_nms_cuda.cu
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2

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.

please tell me what i did wrong. Thank you for your time

@tom123478
Copy link

i have same wrong

@Chenjiangwen
Copy link

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

I did yeah. can you please tell me the steps you followed and what correct virtual environment i should the compile with? i made a virtual environment and it created a folder outside the main yolov5_obb folder. then i activated it and installed pytorch with this command: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 then cd yolov5_obb then pip install -r requirements.txt then cd utils/nms_rotated then pip install -v -e .

and im still getting the same error: atal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory poly_nms_cuda.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2

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.

please tell me what i did wrong. Thank you for your time

@boatman-27 @tom123478 You may try replacing the contents of the folder yolov5_obb->utils->nms_rotated with the following files and then give it another try. link

@boatman-27
Copy link
Author

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

I did yeah. can you please tell me the steps you followed and what correct virtual environment i should the compile with? i made a virtual environment and it created a folder outside the main yolov5_obb folder. then i activated it and installed pytorch with this command: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 then cd yolov5_obb then pip install -r requirements.txt then cd utils/nms_rotated then pip install -v -e .
and im still getting the same error: atal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory poly_nms_cuda.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2
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.
please tell me what i did wrong. Thank you for your time

@boatman-27 @tom123478 You may try replacing the contents of the folder yolov5_obb->utils->nms_rotated with the following files and then give it another try. link

Thank you! can you please give me access

@Chenjiangwen
Copy link

My mistake, it should be fine now.

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

I did yeah. can you please tell me the steps you followed and what correct virtual environment i should the compile with? i made a virtual environment and it created a folder outside the main yolov5_obb folder. then i activated it and installed pytorch with this command: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 then cd yolov5_obb then pip install -r requirements.txt then cd utils/nms_rotated then pip install -v -e .
and im still getting the same error: atal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory poly_nms_cuda.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2
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.
please tell me what i did wrong. Thank you for your time

@boatman-27 @tom123478 You may try replacing the contents of the folder yolov5_obb->utils->nms_rotated with the following files and then give it another try. link

Thank you! can you please give me access

@boatman-27
Copy link
Author

My mistake, it should be fine now.

Have you tried compiling with 'pip install -v -e .' in the correct virtual environment? I have successfully started training using this method.

I did yeah. can you please tell me the steps you followed and what correct virtual environment i should the compile with? i made a virtual environment and it created a folder outside the main yolov5_obb folder. then i activated it and installed pytorch with this command: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 then cd yolov5_obb then pip install -r requirements.txt then cd utils/nms_rotated then pip install -v -e .
and im still getting the same error: atal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory poly_nms_cuda.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe' failed with exit code 2
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.
please tell me what i did wrong. Thank you for your time

@boatman-27 @tom123478 You may try replacing the contents of the folder yolov5_obb->utils->nms_rotated with the following files and then give it another try. link

Thank you! can you please give me access

ahh all good, it installed now. tysm and with this ill close this issue. :)

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

3 participants