HOW TO INSTALL CUDA WITH EASY OCR.
8 posts
• Page 1 of 1
HOW TO INSTALL CUDA WITH EASY OCR.
no longer avaliable.
Last edited by lordofkillz on Fri Apr 07, 2023 4:08 pm, edited 13 times in total.
-
lordofkillz - Private First Class
- Posts: 3
- Joined: Sat Dec 26, 2020 2:10 am
Re: HOW TO INSTALL CUDA WITH EASY OCR.
Thank you for the comprehensive guide
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
Re: HOW TO INSTALL CUDA WITH EASY OCR.
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?
-
iNemesis - Private First Class
- Posts: 2
- Joined: Thu May 13, 2021 5:26 am
Re: HOW TO INSTALL CUDA WITH EASY OCR.
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.
-
lordofkillz - Private First Class
- Posts: 3
- Joined: Sat Dec 26, 2020 2:10 am
Re: HOW TO INSTALL CUDA WITH EASY OCR.
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?
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?
-
a1mless - Private
- Posts: 1
- Joined: Sat Oct 30, 2021 6:31 pm
Re: HOW TO INSTALL CUDA WITH EASY OCR.
Works great still in 2022, good stuff man, helped me out a ton!
-
Sin Of Barraka - Sergeant
- Posts: 6
- Joined: Thu Apr 01, 2021 11:18 am
Re: HOW TO INSTALL CUDA WITH EASY OCR.
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?
-
johng126 - Private First Class
- Posts: 2
- Joined: Fri Jul 17, 2020 12:49 pm
Re: HOW TO INSTALL CUDA WITH EASY OCR.
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.
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
-
Meathelix - Private
- Posts: 1
- Joined: Mon Jun 20, 2022 8:02 am
8 posts
• Page 1 of 1
Return to User's Script Documentation
Who is online
Users browsing this forum: No registered users and 23 guests