ying09 / TextFuseNet

A PyTorch implementation of "TextFuseNet: Scene Text Detection with Richer Fused Features".
MIT License
476 stars 123 forks source link

RuntimeError: Not compiled with GPU support #27

Closed dhirajsuvarna closed 3 years ago

dhirajsuvarna commented 4 years ago

Hi @ying09 ,

I followed the instructions in the step-by-step installation.txt and was able to go through with no issues.

However, when I try to run the demo\icdar2013_detection.py along with the required options, I get an error RuntimeError: Not compiled with GPU support.

Both the input options and the error is shown in the screenshot below -

image

Let me know if you need any other information.

Real-YeJ commented 4 years ago

@dhirajsuvarna When you compile TextFuseNet(or detectron2), it's necessary to compile with cuda and make sure your cuda and pytorch match.

dhirajsuvarna commented 4 years ago

@Real-YeJ , I did some searching into this error and it seems that CUDA_HOME env variable is not set.

When you say compile with cuda do I need to do anything other than the steps mentioned in step-by-step installation.txt? I guess this conda install pytorch=1.3.1 torchvision cudatoolkit=10.1 -c pytorch installs the required cuda toolkit.

Is any other separate installation of cuda is required? or do I need to pass any compile time parameters? or any other steps that needs to be taken?

Real-YeJ commented 4 years ago

@dhirajsuvarna don't need other additional steps,just make sure your cuda version is match with pytorch version. more details https://github.com/facebookresearch/detectron2/issues/55

dhirajsuvarna commented 4 years ago

Here are the versions of the the packages installed. Those seem to be in sync.

image

image

I manually added CUDA_HOME into my env point it to the folder shown below

image

sadly still facing the error.

Do you think my CUDA_HOME is pointing to the correct location? or should it be pointing to one of the three folders inside? image

Real-YeJ commented 4 years ago

@dhirajsuvarna check the version of your cuda, and I suggest that compile on linux instead of windows.