简体   繁体   English

easyocr 警告 CUDA 不可用 - 默认为 CPU。 注意:此模块使用 GPU 时速度更快

[英]easyocr WARNING CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU

I reference this post to check my cuda driver.我参考这篇文章来检查我的 cuda 驱动程序。 It's meet the requirements.是符合要求的。 But torch still can't use GPU.但是火炬仍然不能使用GPU。

operating system info: Windows 10操作系统信息: Windows 10

package and env info:包和环境信息:

(.env) PS E:\TMP> nvidia-smi
Tue Dec 20 14:25:12 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 512.77       Driver Version: 512.77       CUDA Version: 11.6     |

(.env) PS E:\TMP> python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
False

(.env) PS E:\TMP> pip freeze
...
easyocr==1.6.2
opencv-python==4.6.0.66
opencv-python-headless==4.5.4.60
torch==1.13.1
torchaudio==0.13.1+cu116
torchvision==0.14.1

Any help will appreciate.任何帮助将不胜感激。

Currently, PyTorch on Windows only supports Python 3.7-3.9;目前,Windows 上的 PyTorch 仅支持 Python 3.7-3.9; Python 2.x is not supported.不支持 Python 2.x。

Ref参考

Change python version to 3.8 can work.将 python 版本更改为 3.8 可以工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python / Torch Multiprocessing 下使用的 EasyOCR 默认为 CPU - EasyOCR used under Python / Torch Multiprocessing is defaulting to CPU 我没有Nvidia GPU,想在CPU上运行Tensorflow模型。 为什么它总是要求一些CUDA DLL? - I don't have an Nvidia GPU and want to run a Tensorflow model on the CPU. Why does it keep asking for some CUDA DLL? 警告(theano.sandbox.cuda):已安装CUDA,但设备gpu不可用(错误:cuda不可用) - WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available (error: cuda unavailable) 为什么 OpenCV GPU CUDA 模板匹配比 CPU 慢这么多? - Why is OpenCV GPU CUDA template matching so much slower than CPU? 与在 8 核 CPU 笔记本电脑上进行训练相比,在启用 AWS GPU 的实例上进行训练的速度要快多少? - How much faster is training on an AWS GPU enabled instance compared to training on 8-core CPU laptop? GPU 上的 pytorch 排序/中位数与 CPU 上的 numpy 一样慢。 我错过了什么吗? - pytorch sort/median on GPU as slow as numpy on CPU. Am I missing something? Pytorch CPU CUDA 设备负载无 gpu - Pytorch CPU CUDA device load without gpu 我的计算密集型 Numba function 在 GPU 上的运行速度比在 CPU 上慢 10 倍。 我错过了什么吗? - My computationally intensive Numba function runs 10x slower on the GPU than on CPU. Am I missing anything? 在简单的numpy操作中,Cuda GPU比CPU慢 - Cuda GPU is slower than CPU in simple numpy operation CUDA GPU 在 CPU 支持下进行 model 训练的替代方法是什么? - What is the alternative of CUDA GPU for model training with CPU support?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM