当前位置: 首页 > news >正文

安全联盟这种网站建设网站设计ai

安全联盟这种网站建设,网站设计ai,南通公司做网站,链接生成这里写目录标题 清华镜像加速 安装cuda11.3 PyTorch 1.10.1https://pytorch.org/get-started/previous-versions/[如果没有可以点Previous pyTorch Versions#xff0c;这里面有更多的更早的版本](https://pytorch.org/get-started/locally/) 复制非空文件夹cp: -r not specif… 这里写目录标题 清华镜像加速 安装cuda11.3 PyTorch 1.10.1https://pytorch.org/get-started/previous-versions/[如果没有可以点Previous pyTorch Versions这里面有更多的更早的版本](https://pytorch.org/get-started/locally/) 复制非空文件夹cp: -r not specified omitting directory XXXMultiplexedOCRcannot import name ‘_download_url_to_file‘ from ‘torch.utils.model_zoo‘ImportError: cannot import name TopologicalError from shapely.geosImportError: /data1/xyj/MultiplexedOCR-main/multiplexer/_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c106SymInt19promote_to_negativeEvTypeError: join() argument must be str, bytes, or os.PathLike object, not ‘NoneType‘ masktextspotterapex安装安装maskrcnn-benchmarkmaskrcnnmaskrcnn-benchmark疯狂报错ImportError: cannot import name ‘_C’ from ‘maskrcnn_benchmark’ Test_spotting_transformer/data1/xyj/anaconda3/envs/TESTR/lib/python3.8/site-packages/detectron2/utils/visualizer.py:308: UserWarning: Glyph 21475 (\N{CJK UNIFIED IDEOGRAPH-53E3}) missing from current font. openmmlaberror: metadata-generation-failed ERROR: Failed building wheel for mmpycocotoolsERROR: Could not build wheels for mmpycocotools, which is required to install pyproject.toml-based projectsImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-AssertionError: MMCV2.1.0 is used but incompatible. Please install mmcv1.2.4, 1.4.0.安装mmcvmmcv报错:ModuleNotFoundError: No module named ‘mmcv._ext‘OSError: checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth is not a checkpoint fileRuntimeError: CUDA error: no kernel image is available for execution on the device **安装torch cuda成功后用以下代码测试cuda是否可用** 清华镜像加速 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simplepip install torch2.0.0cu118 torchvision0.15.1cu118 torchaudio2.0.1cu118 -f https://download.pytorch.org/whl/torch_stable.html 安装cuda11.3 PyTorch 1.10.1 https://pytorch.org/get-started/previous-versions/ conda install pytorch1.10.1 torchvision0.11.2 torchaudio0.10.1 cudatoolkit11.3 -c pytorch -c conda-forge 不可以一直在解析环境 如果没有可以点Previous pyTorch Versions这里面有更多的更早的版本 pip3 install torch1.10.0cu113 torchvision0.11.1cu113 torchaudio0.10.0cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html通过以上指令会把Pytorch1.10以及需要的CUDA11.3全部安装好不需要单独安装CUDA 复制非空文件夹cp: -r not specified omitting directory XXX linux复制操作 cp: -r not specified omitting directory XXX 错误 记得加上 -r MultiplexedOCR cannot import name ‘_download_url_to_file‘ from ‘torch.utils.model_zoo‘ ImportError: cannot import name ‘HASH_REGEX’ from ‘torch.utils.model_zoo’ try:from torch.hub import HASH_REGEX, _download_url_to_file, urlparse except ImportError:from torch.hub import download_url_to_filefrom torch.hub import urlparsefrom torch.hub import HASH_REGEX#from torch.utils.model_zoo import _download_url_to_file#from torch.utils.model_zoo import urlparse#from torch.utils.model_zoo import HASH_REGEX ImportError: cannot import name ‘TopologicalError’ from ‘shapely.geos’ Revert Shapely to 1.8.5 and Numpy to 1.23.4 Should work. ImportError: /data1/xyj/MultiplexedOCR-main/multiplexer/_C.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c106SymInt19promote_to_negativeEv I’ve faced of this issue recently and creating a new environment with parameters below solved my problem. PS : I assume that you’re using torch with CUDA, if you’re not you can install non-GPU versions. torch version : 1.9 cu111 torchvision : 0.10.0 cu111 torchaudio : 0.9.0You can download these from ; pip install torch1.9.0cu111 torchvision0.10.0cu111 torchaudio0.9.0 -f https://download.pytorch.org/whl/torch_stable.html好像不管什么版本 -f 后面接的都是一个网址 TypeError: join() argument must be str, bytes, or os.PathLike object, not ‘NoneType‘ masktextspotter conda create -n masktextspotter python3.8 conda activate maskrcnn_benchmark #安装各种依赖包 conda install ipython pip install ninja yacs cython matplotlib tqdm opencv-python# install PyTorch 反正后面torch报错我换了个版本conda install pytorch torchvision cudatoolkit10.0 -c pytorch# install pycocotoolscd $INSTALL_DIRgit clone https://github.com/cocodataset/cocoapi.gitcd cocoapi/PythonAPIpython setup.py build_ext install# install apexcd $INSTALL_DIRgit clone https://github.com/NVIDIA/apex.gitcd apexpython setup.py install --cuda_ext --cpp_ext# clone repocd $INSTALL_DIRgit clone https://github.com/MhLiao/MaskTextSpotterV3.gitcd MaskTextSpotterV3# buildpython setup.py build developapex安装 此句报错 python setup.py install --cuda_ext --cpp_ext或许换成这句有用pip install -v --no-cache-dir ./,待会试试 注意apex和下面的maskrcnn-benchmark都不可以直接pip 安装maskrcnn-benchmarkmaskrcnn 一堆报错报错找不到maskrcnn-benchmark 但是清楚地看到项目同级文件夹下有maskrcnn-benchmark这个包 我甚至很愚蠢地 import torch print(torch.__file__) 查看包的路径,想把maskrcnn-benchmark这个文件夹复制到搜寻的路径安装的包就是一个文件夹嘛TT查到是 anaconda3/envs/masktextspotter/lib/python3.8/site-packages,放到这个路径下好像没再报错了但可能这个文件夹就没安装成功是错的 python import 搜索包路径的机制以及添加自定义python包的方法 cd ../ git clone https://github.com/facebookresearch/maskrcnn-benchmark.git cd maskrcnn-benchmark #安装相应的包 pip3 install -r requirements.txtmaskrcnn-benchmark疯狂报错 ImportError: cannot import name ‘_C’ from ‘maskrcnn_benchmark’ 修改处 nms.py from maskrcnn_benchmark import _C 修改为 from ._utils import _C 没用继续报错TT TT 有时间再看看把 maskrcnn安装及遇到的各种问题 搭建maskrcnn-benchmark的环境遇到问题 Test_spotting_transformer 训练语料库只含少量中文数据论文中写到将其忽略 python demo/demo.py --config-file configs/TESTR/TotalText/TESTR_R_50_Polygon.yaml --input work_dirs/ocr_en_422k --output output/en --opts MODEL.WEIGHTS work_dirs/totaltext_testr_R_50_polygon.pth MODEL.TRANSFORMER.INFERENCE_TH_TEST 0.3 python demo/demo.py --config-file configs/TESTR/TotalText/TESTR_R_50_Polygon.yaml --input work_dirs/ocr_en_422k --output output/en --opts MODEL.WEIGHTS work_dirs/totaltext_testr_R_50_polygon.pth MODEL.TRANSFORMER.INFERENCE_TH_TEST 0.3 检测中文时出现以下错误 /data1/xyj/anaconda3/envs/TESTR/lib/python3.8/site-packages/detectron2/utils/visualizer.py:308: UserWarning: Glyph 21475 (\N{CJK UNIFIED IDEOGRAPH-53E3}) missing from current font. openmmlab 从网上上找到的资料看可能是由于最新版本的pytorch (1.11以上去除对这个头文件的支持所以我们建议使用pytorch 1.8版本会比较稳定 pip install torch1.8.1cu102 torchvision0.9.1cu102 torchaudio0.8.1 -f https://download.pytorch.org/whl/torch_stable.html原来是conda install pytorch2.0.0 torchvision0.15.0 torchaudio2.0.0 pytorch-cuda11.8 -c pytorch -c nvidia 这个版本 error: metadata-generation-failed error: metadata-generation-failed 需要执行命令 pip install setuptools50.3.2 问题解决 ERROR: Failed building wheel for mmpycocotools 安装cython0.29.33版本就可以解决 pip3 install cython0.29.33 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.compip install mmpycocotoolsERROR: Could not build wheels for mmpycocotools, which is required to install pyproject.toml-based projects ImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64- mmcv官方https://mmcv.readthedocs.io/en/latest/get_started/installation.html 这些问题归根到底还是mmcv-full和自己安装的pytorch版本不匹配的原因导致的所以在安装mmcv-full时尽量不要偷懒不要直接pip install mmcv-full先检查好自己的nvidia驱动以及CUDA版本然后去mmcv的github或者官网去寻找指定的命令去下载找到匹配的版本下载安装后就可以正常运行了。 原文链接https://blog.csdn.net/weixin_42130300/article/details/121616567 官方链接 AssertionError: MMCV2.1.0 is used but incompatible. Please install mmcv1.2.4, 1.4.0. 安装mmcv MMCV是OpenMMLab系列代码的基础库。Linux环境安装的whl包又打包好的相对较容易可以直接下载安装 特别注意需要和Pytorch 和 CUDA版本对应才能确保安装安装过程出现ERROR的红色字样均需要卸载重新安装 当前机器版本为Torch 1.8.0 CUDA 10.2 安装相应的版本 #安装mmcv #使用简单功能使用下命令 #!pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.1/index.html #安装完全版本 #!pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.1/index.html #安装只需要修改cuda版本和torch版本即可当前安装的是mmcv-full ———————————————— 版权声明本文为CSDN博主「瑾怀轩」的原创文章遵循CC 4.0 BY-SA版权协议转载请附上原文出处链接及本声明。 原文链接https://blog.csdn.net/ckq707718837/article/details/121252909 pip uninstall -y mmdet mmcv conda install -y cython0.28.5 pip install mmcv0.6.2 terminaltables Pillow6.2.2export FORCE_CUDA1pip install githttps://github.com/open-mmlab/cocoapi.git#subdirectorypycocotools pip install githttps://github.com/cocodataset/cocoapi.git#subdirectoryPythonAPIrm -rf build pip install -r requirements/build.txt python setup.py developpip install mmcv1.4.0 # pip install mmcv-full1.4.0 -f https://download.openmmlab.com/mmcv/dist/{cu版本}/{torch版本}/index.html pip install mmcv-full1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.1/index.html mmcv报错:ModuleNotFoundError: No module named ‘mmcv._ext‘ 当前的仓库代码是基于mmcv-full1.3.4和mmdet2.11.0新的mmdet一些接口的调用位置会发生变化 mmdet2.11.0 pip install mmcv-full1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.1/index.html 解决 解决方法: mmcv正常安装 先卸载mmcv-full,然后重新安装一下 OSError: checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth is not a checkpoint file config文件对应错了 RuntimeError: CUDA error: no kernel image is available for execution on the device 换了个环境 conda install pytorch1.8.0 torchvision0.9.0 torchaudio0.8.0 cudatoolkit11.1 -c pytorch -c conda-forge 哭死 安装torch cuda成功后用以下代码测试cuda是否可用 python -c import torch;print(torch.__version__)查看版本 1.8.1cu102 import torch torch.cuda.is_available() # 返回True 接着用下列代码进一步测试 torch.zeros(1).cuda()
http://www.w-s-a.com/news/9482/

相关文章:

  • 二手市场网站建设的目的长沙ui设计公司
  • 微信公众号做留言网站wordpress详情页选择模板
  • php网站开发面向对象教程如何做分享赚钱的网站
  • 山东网站建设最便宜常州网站建站公司
  • 网站地图 seo中国建设招标网是私人网站吗
  • 高中作文网站全网营销有哪些平台
  • 网站构建建设制作平台上海搬家公司收费价目表
  • 成功案例展示网站做网站赚多少钱
  • 建设银行网站用什么字体网站建站后维护需要做哪些
  • 有哪些做平面设计好素材网站有哪些开网站建设
  • 国际交流网站平台有哪些筑建网
  • 网站程序是如何开发的江门市住房建设管理局网站
  • 网站建设一般需要几个步骤昵图网免费素材
  • 个人网站建设需求说明书微信域名防封在线生成
  • 专业网站建设的公司wordpress后台没有模板
  • 哈尔滨网站运营服务商制作外贸网站公司
  • 个人网站需要备案宁波网站推广工具
  • 苏州建设银行网站首页wordpress修改密码
  • 网站建设员工技能要求网站制作简单协议
  • 没有ipc备案的网站wordpress isux主题
  • 清远做网站电子商务网站建设需要的语言及特点6
  • 万州那家做网站c语言基础知识入门
  • 齐河网站建设公司价格网站建设包括什么
  • 论坛网站开发费用怎么把文件放到网站的根目录
  • 海南省零售户电商网站官渡区住房和城乡建设局网站
  • 怎么找淘宝客网站最新军事战况
  • 缺乏门户网站建设网页设计与制作项目教程第二版
  • 手机网站横竖屏一般做建设的是什么公司
  • 免费网站建设无广告网站开发 华景新城
  • 湖州网站制作报价西安网站开发有哪些公司