OCR-D / core

Collection of OCR-related python tools and wrappers from @OCR-D
https://ocr-d.de/core/
Apache License 2.0
119 stars 31 forks source link

GPU processors: (uniformly) log CPU vs GPU use #1061

Open bertsky opened 1 year ago

bertsky commented 1 year ago

Due to the lack of a specification on that aspect, our processors have no or no uniform way to inform the user whether or not a GPU device is used (or even parameterise which one to prefer). Here's the current state of affairs in this regard:

The good news is that when there is a GPU, we try to utilise it. But the user has no way to validate this works (other than perhaps make test-cuda in ocrd_all).

Personally, I like the warnings best. Could we agree on standardising and enforcing these?

stefanCCS commented 1 year ago

@bertsky : Many thanks for opening this issue. The "Warning"-variant would be very nice. In my opinion, this is needed, e.g. in my environment I can only "believe" that ocrd-kraken-segment uses the GPU.

bertsky commented 1 year ago

e.g. in my environment I can only "believe" that ocrd-kraken-segment uses the GPU.

BTW I just amended https://github.com/OCR-D/ocrd_kraken/pull/38 to include such warnings for Kraken.

kba commented 1 year ago

Having consistent WARNING about this across processors would be a good first step indeed.