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

GPU is not working. #22

Closed
gregcho opened this issue Jul 1, 2020 · 5 comments
Closed

GPU is not working. #22

gregcho opened this issue Jul 1, 2020 · 5 comments

Comments

@gregcho
Copy link

gregcho commented Jul 1, 2020

Hello.
I finally find good project for me.
but I have 1 issue using GPU, CPU version is fine.

when I load program like this.

    read = easyocr.Reader(['en'])
    text = read.readtext('D:/workspace/EasyOCR-master/examples/4.jpg')
    print(text)

I got this message :
RuntimeError: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu

@gregcho
Copy link
Author

gregcho commented Jul 2, 2020

I have two GPU.

  • GeForce GTX 1070 Ti
  • pytorch version : 1.5.1

@rkcosmos
Copy link
Contributor

rkcosmos commented Jul 2, 2020

Can you try specify which gpu to be used by using gpu = 'your gpu' argument? See this ssue.

@gregcho
Copy link
Author

gregcho commented Jul 2, 2020

'your gpu' argument means gpu number?

@rkcosmos
Copy link
Contributor

rkcosmos commented Jul 2, 2020

Something like 'cuda:0' or 'cuda:1'. See this discussion on pytorch.

@gregcho
Copy link
Author

gregcho commented Jul 2, 2020

thanks!

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

2 participants