首页 > 其他分享 >table master环境配置

table master环境配置

时间:2023-01-06 23:12:01浏览次数:66  
标签:conda demo 配置 pytorch master cuda install pip table

TableMASTER-mmocr运行环境搭建

pwd:TableMASTER-mmocr-master

# conda环境
conda create -n record python=3.8

1.pytorch(改用conda安装,同时安装cuda)

# pytorch 1.10.1   CUDA 11.3
conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge

这里有网页提议去掉-c pytorch才能真正使用镜像下载。(但我的镜像好像去掉-c好像不行)

好吧,不要删掉,详见这篇博客,和这个笔记。所以正确换源后运行上面的命令即可

参考:

https://blog.csdn.net/qq_42888454/article/details/122046247

https://blog.csdn.net/qq_41719643/article/details/117877911

https://blog.csdn.net/m0_53159830/article/details/123291139

http://t.zoukankan.com/moonfan-p-15519116.html

安装好之后请用环境的pytorch检测cuda是否正常可用,如果不行,请另想办法

#判断是否安装了cuda
import torch
print(torch.cuda.is_available())  #返回True则说明已经安装了cuda

#判断是否安装了cuDNN
from torch.backends import  cudnn 
print(cudnn.is_available())  #返回True则说明已经安装了cuDNN

2.按照REAMD.md进行installation

注意:requirements的两个lanms-proper要换成lanms-neo

Install mmdetection. click here for details.

# We embed mmdetection-2.11.0 source code into this project.
# You can cd and install it (recommend).
cd ./mmdetection-2.11.0
pip install -v -e .

Install mmocr. click here for details.

# install mmocr
cd ..
pip install -v -e .

3.mmcv-full(1.2.4-1.4.0)

可以去官方文档找到对应版本,这里直接给了可行的对应 pytorch 1.10.1 CUDA 11.3 的版本

pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10/index.html

4.运行demo

真正的demo在 ./table_recognition/demo,有README.md可以看

直接运行

python ./table_recognition/demo/demo.py

此时会报错没有tqdm,直接pip安装了就好,

pip install tqdm

然后再运行就没问题了。

但是里面路径会报错,直接修改模型路径过去。详见顺利运行demo教程

如果在运行demo时出现这些已知问题,可以直接照着改(但是这个配置就是出了这些问题解决了的啊)。

标签:conda,demo,配置,pytorch,master,cuda,install,pip,table
From: https://www.cnblogs.com/faf4r/p/17031840.html

相关文章

  • Manjaro安装后的配置
    Manjaro-22安装后进行的设置:1.设置主板时间为本地时间,默认为UTC时间,与Windows不同,如果双系统,时间有时差sudotimedatectlset-local-rtctrue2.设置软件源sudopacman-mi......
  • 让el-table-column具有排序功能
    给el-table添加:default-sort="{prop:null,order:null}"@sort-change="sortChange"定义对应方法sortChange(column){console.log(column.order);......
  • 技术汇总:第十章:Maven Profile动态选择配置文件
    MavenProfile什么是MavenProfile在我们平常的java开发中,会经常使用到很多配制文件(xxx.properties,xxx.xml),而当我们在本地开发(dev),测试环境测试(test),线上生产使用(product)时,......
  • Caused by: org.yaml.snakeyaml.error.YAMLException|springboot yml配置问题
    参考https://blog.csdn.net/loler15/article/details/114987020原因:将propriate转yml配置时要删除重建......
  • 配置设置 创表 数据库迁移
    配置设置创表数据库迁移目录配置设置创表数据库迁移BBS项目类似于博客园核心:文章的增删改查一、表分析二、基础字段分析三、外键字段分析四、创建项目以及配置设......
  • Ubuntu 手动配置DNS
    使用ping命令测试百度域名时发现,无法解析这个域名,说明当前系统上没有配置DNS服务器。配置DNS服务器的方式主要有以下两种:        目录1、修改DNS配置文件 /e......
  • Ubuntu下配置DNS
    方法一:通过/etc/network/interfaces,在它的最后增加一句(多个dns之间用空格分隔):#interfaces(5)fileusedbyifup(8)andifdown(8)#Includefilesfrom/etc/network/i......
  • 计算机网络企业级网络构建与配置实现实验
    企业级网路构建与配置实现实验具体任务本次实验要完成的主要任务有:(1)设备命名和端口规划(2)IP地址规划对图6-1中的所有网络进行IP地址的分配和子网划分。(3)VLAN划分与配......
  • 自动生成android动画配置文件
    importflash.net.FileReference;importflash.system.System;varxs:XML=<animation-listxmlns:android="http://schemas.android.com/apk/res/android"android:oneshot......
  • 006.Huawei交换机配置相关命令(简写)
    <Huawei>utm//关闭日志提示<Huawei>lac//改变语言模式为中文Changelanguagemode,confi......