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

fasterRCNN compilation error with python 3.8 and pytorch 1.12 cuda 11.3 #36

Closed
zee-fee opened this issue Aug 5, 2022 · 3 comments
Closed

Comments

@zee-fee
Copy link

zee-fee commented Aug 5, 2022

I.m trying to setup sttran from scratch and I'm getting errors while setting up fasterRCNN package.
The command I run is :
STTran/fasterRCNN/lib: python setup.py install

fatal error: THC/THC.h: No such file or directory
    5 | #include <THC/THC.h>
      |          ^~~~~~~~~~~
compilation terminated.
@yrcong
Copy link
Owner

yrcong commented Aug 10, 2022

The CUDA version you are using is too high. If you are not using a RTX30 GPU, it is better to downgrade to Cuda10.2.

@ScottHoang
Copy link

hi zee-fee, you can download the fix here
jwyang/faster-rcnn.pytorch#894

@zee-fee
Copy link
Author

zee-fee commented Aug 18, 2022

I downgraded to cuda 10.2 and now it works with torch 1.1

@zee-fee zee-fee closed this as completed Aug 18, 2022
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