Closed TutajITeraz closed 3 months ago
Hi tutajl. --device must come before the first processing command and the kraken call, so here before binarize. Note that binarization is useless nowadays and will break bl and htr i believe
On Thu, 25 Jul 2024, 9:02 am TutajITeraz, @.***> wrote:
Hello! I need to switch between gpu and cpu computing, so I read the Usage options (by typing kraken without parameters) and I saw this description:
-d, --device TEXT Select device to use (cpu, cuda:0, cuda:1, ...) [default: cpu]
I have tried both -d and --device:
$ kraken -i results/8v_mod.jpg results/8v_mod.txt binarize segment -bl ocr -m cremma-generic-1.0.1.mlmodel -d gpu Error: Invalid value for '-d' / '--text-direction': 'gpu' is not one of 'horizontal-tb', 'vertical-lr', 'vertical-rl'.
kraken -i results/8v_mod.jpg results/8v_mod.txt binarize segment -bl ocr -m cremma-generic-1.0.1.mlmodel --device cpu Error: No such option: --device
How can i switch between this two? Is help manual wrong?
Im using kraken==5.2.7 installed from pip on Manjaro Linux. (Linux 5.15.160-1-MANJARO)
— Reply to this email directly, view it on GitHub https://github.com/mittagessen/kraken/issues/629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOXEZXAZQUJUCNSK2SRR7TZOCPI3AVCNFSM6AAAAABLN43MMWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDSMJYHA4TSNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thank you @PonteIneptique !
Hello! I need to switch between gpu and cpu computing, so I read the Usage options (by typing kraken without parameters) and I saw this description:
I have tried both -d and --device:
How can i switch between this two? Is help manual wrong?
Im using kraken==5.2.7 installed from pip on Manjaro Linux. (Linux 5.15.160-1-MANJARO)