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

RuntimeError: CUDA error: the launch timed out and was terminated #1237

Open
yuisunn opened this issue Apr 1, 2024 · 1 comment
Open

RuntimeError: CUDA error: the launch timed out and was terminated #1237

yuisunn opened this issue Apr 1, 2024 · 1 comment

Comments

@yuisunn
Copy link

yuisunn commented Apr 1, 2024

Sometimes this error will be reported torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1
li_txts = self.ocr.readtext(img_arry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anaconda3\Lib\site-packages\easyocr\easyocr.py", line 452, in readtext
horizontal_list, free_list = self.detect(img,
^^^^^^^^^^^^^^^^
File "C:\Users\anaconda3\Lib\site-packages\easyocr\easyocr.py", line 321, in detect
text_box_list = self.get_textbox(self.detector,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anaconda3\Lib\site-packages\easyocr\detection.py", line 95, in get_textbox
bboxes_list, polys_list = test_net(canvas_size, mag_ratio, detector,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anaconda3\Lib\site-packages\easyocr\detection.py", line 51, in test_net
score_text = out[:, :, 0].cpu().data.numpy()
^^^^^^^^^^^^^^^^^^
RuntimeError: CUDA error: the launch timed out and was terminated
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

@samthakur587
Copy link

use this

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch

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