window10安装MMOCR

查看本机驱动、cuda

window10安装MMOCR_第1张图片

window10安装MMOCR_第2张图片

 安装MMOCR基础环节

下载安装 PyTorch、mmcv-full

!pip3 install install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio==0.10.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
!pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.html

# 安装 mmdet
!pip install mmdet -i https://pypi.tuna.tsinghua.edu.cn/simple

# 安装其它工具包
!pip install tqdm matplotlib numpy opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

下载 MMOCR

# 从 github 上下载最新的 mmocr 源代码
git clone https://github.com/open-mmlab/mmocr.git

安装 MMOCR 依赖包

!pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
!pip install -v -e .

检查是否安装成功

window10安装MMOCR_第3张图片

参考:

https://github.com/TommyZihao/MMOCR_tutorials

你可能感兴趣的:(学习笔记,pytorch,深度学习,python)