HOW TO INSTALL CUDA WITH EASY OCR.

Documentation, usage tips and configuration guides for GCV scripts published by the community users.

HOW TO INSTALL CUDA WITH EASY OCR.

Postby lordofkillz » Sat Sep 04, 2021 3:50 pm

no longer avaliable.
Last edited by lordofkillz on Fri Apr 07, 2023 4:08 pm, edited 13 times in total.
User avatar
lordofkillz
Private First Class
Private First Class
 
Posts: 3
Joined: Sat Dec 26, 2020 2:10 am

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby antithesis » Mon Sep 06, 2021 10:18 pm

Thank you for the comprehensive guide :)
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby iNemesis » Sun Sep 12, 2021 4:25 am

Great tutorial! I am having a problem and cant seem to fix it. I had the cuda version install before with old tutorial that no longer exist and not sure why but it stopped working so I had to reinstall it. I used your tutorial but now I am getting: GCV Error: CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU. Have any clue why that's happening?
User avatar
iNemesis
Private First Class
Private First Class
 
Posts: 2
Joined: Thu May 13, 2021 5:26 am

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby lordofkillz » Sun Sep 12, 2021 5:00 am

Just ignore that when you install py torch on cpu it gives that warning the evn has no idea if cuda is installed or not. its not a concern just a message from the dev. the way I build this environment is easyocr runs on cpu and OpenCV run on cuda.
User avatar
lordofkillz
Private First Class
Private First Class
 
Posts: 3
Joined: Sat Dec 26, 2020 2:10 am

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby a1mless » Sat Oct 30, 2021 6:38 pm

Hi,

I've read your post on HOW TO INSTALL CUDA WITH EASY OCR.
I have followed it precisely and when i run your BUILD_OPENCV i get

#error This file was generated by an older version of protoc which is

This happens in random locations. Most commonly at building Caffe or Tensorflow.
I have tried with Protobuf 3.15.1 and 3.17.2 both return this error.

I spent 7 hours today trying various things but to no success.
What Protobuf version did you use for building?

Alternatively:
I have a separate env which has CUDA enabled and works fine, I built it using CMAKE long time ago. However as soon as i install easyocr it overwrites my torch with pytorch and stops recognizing my GPU. Theres something wrong with pytorch in easyocr package. Any ideas how to fix it?
User avatar
a1mless
Private
Private
 
Posts: 1
Joined: Sat Oct 30, 2021 6:31 pm

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby Sin Of Barraka » Mon Apr 11, 2022 11:36 pm

Works great still in 2022, good stuff man, helped me out a ton!
User avatar
Sin Of Barraka
Sergeant
Sergeant
 
Posts: 6
Joined: Thu Apr 01, 2021 11:18 am

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby johng126 » Mon May 16, 2022 12:58 pm

Did you ever resolve this? I am getting the same error today.


a1mless wrote:Hi,

I've read your post on HOW TO INSTALL CUDA WITH EASY OCR.
I have followed it precisely and when i run your BUILD_OPENCV i get

#error This file was generated by an older version of protoc which is

This happens in random locations. Most commonly at building Caffe or Tensorflow.
I have tried with Protobuf 3.15.1 and 3.17.2 both return this error.

I spent 7 hours today trying various things but to no success.
What Protobuf version did you use for building?

Alternatively:
I have a separate env which has CUDA enabled and works fine, I built it using CMAKE long time ago. However as soon as i install easyocr it overwrites my torch with pytorch and stops recognizing my GPU. Theres something wrong with pytorch in easyocr package. Any ideas how to fix it?
User avatar
johng126
Private First Class
Private First Class
 
Posts: 2
Joined: Fri Jul 17, 2020 12:49 pm

Re: HOW TO INSTALL CUDA WITH EASY OCR.

Postby Meathelix » Mon Jun 20, 2022 8:08 am

First off great tutorial, easy to follow!

However, I have one small problem, that I could not find the answer for, on step OpenCV Build I am getting "The system cannot find the path specified.

I have attached an image showing everything all set up, it looks correct to me however I could be missing something totally right in my face...

I will keep trying, if I get it before a response I will let you know!

Update - So I fixed the issue, it was that I downloaded VS 2019 Professional. I changed the Path within the Bat file and it now works!

Update #2

Seems like halfway through building the OpenCV Build I now get a new Error that is related to CUDA. Will keep trying to figure out what it is.


So it starts to build and then Fails

Here is part of the code.

Code: Select all
-- Configuring done
-- Generating done
-- Build files have been written to: C:/opencv_build/build
OpenCV Configuration has finished, proceeding to build phase --
[1/1665] Building CXX object modules\world\CMakeFiles\opencv_world.dir\__\dnn\misc\tensorflow\types.pb.cc.obj
FAILED: modules/world/CMakeFiles/opencv_world.dir/__/dnn/misc/tensorflow/types.pb.cc.obj
User avatar
Meathelix
Private
Private
 
Posts: 1
Joined: Mon Jun 20, 2022 8:02 am


Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 13 guests