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

Low GPU usage with CUDA #62

Open
shipurjan opened this issue Jun 23, 2023 · 2 comments
Open

Low GPU usage with CUDA #62

shipurjan opened this issue Jun 23, 2023 · 2 comments

Comments

@shipurjan
Copy link

My GPU usage is low, but my CPU usage is at 100%. Just wanted to ask if that's normal, or should GPU usage be higher?

torch.cuda.is_available() returns true etc.

Each of the paths above will be treated as one volume. Continue? [yes/no]
yes
2023-06-24 00:59:45.389 | INFO     | mokuro.run:run:43 - Processing 1/7: C:\Users\user\Downloads\nausicaa\01
Processing pages...:   0%|[00:00<?, ?it/s]
2023-06-24 00:59:45.403 | INFO     | mokuro.manga_page_ocr:__init__:30 - Initializing text detector
2023-06-24 00:59:45.796 | INFO     | manga_ocr.ocr:__init__:13 - Loading OCR model from kha-white/manga-ocr-base
2023-06-24 00:59:48.340 | INFO     | manga_ocr.ocr:__init__:19 - Using CUDA
2023-06-24 00:59:50.981 | INFO     | manga_ocr.ocr:__init__:29 - OCR ready
Processing pages...:20% |████████  | 28/137 [02:09<10:56,  6.02s/it]

image

@Setup2134
Copy link

I am also having this issue, did you figure out a solution?

@infectiousstupidity
Copy link

infectiousstupidity commented Jan 15, 2024

Same issue here. It was working when I ran it a year ago.
AMD 5900x, RTX 3080. Average 6% GPU usage, 80%+ CPU usage.
Python 3.11.6
PyTorch 2.1.2+cu118
CUDA 11.8

Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
024-01-15 12:50:00.308 | INFO     | mokuro.manga_page_ocr:__init__:36 - Initializing text detector
2024-01-15 12:50:00.729 | INFO     | manga_ocr.ocr:__init__:13 - Loading OCR model from kha-white/manga-ocr-base
2024-01-15 12:50:03.321 | INFO     | manga_ocr.ocr:__init__:19 - Using CUDA
2024-01-15 12:50:04.198 | INFO     | manga_ocr.ocr:__init__:32 - OCR ready

torch.cuda.is_available() returns true etc, same as OP. Anyone else having the same 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