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

网站设计要求百度关键词点击器

网站设计要求,百度关键词点击器,北京高端建,做微信广告网站有哪些文章目录 Detectron2环境配置搭建python 环境安装Cuda \CUDNN 、PyTorch、 torchvision、cudatoolkit1、Cuda \CUDNN2、 PyTorch、 torchvision、cudatoolkit进入python测试:错误信息 3、detectron2环境在安装detecteron中,遇到报错:编译的时…

文章目录

  • Detectron2环境配置
    • 搭建python 环境
    • 安装Cuda \CUDNN 、PyTorch、 torchvision、cudatoolkit
      • 1、Cuda \CUDNN
      • 2、 PyTorch、 torchvision、cudatoolkit
        • 进入python测试:
        • 错误信息
      • 3、detectron2环境
        • 在安装detecteron中,遇到报错:
        • 编译的时候failed with exit status 1错误
    • 运行demo.py

Detectron2环境配置

需要配置好相应版本的NVIDIA驱动、CUDA、Pytorch、visual studio,visual stdio2019是为了配置gcc g++的。
配置pytorch的链接.
配置CUDA的链接
在这里插入图片描述

可参考项目中的官方安装说明

搭建python 环境

conda create -n detectron2 python
conda activate detectron2

安装Cuda \CUDNN 、PyTorch、 torchvision、cudatoolkit

1、Cuda \CUDNN

可以查询自己的nvcc-v查询自己cuda版本,查看安装指南

2、 PyTorch、 torchvision、cudatoolkit

终端输入:

nvcc -V
得到输出结果,cuda版本为12.1

在这里插入图片描述

# CUDA 11.8
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=11.8 -c pytorch -c nvidia
# CUDA 12.1
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia
# CPU Only
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 cpuonly -c pytorch
进入python测试:

import torch
import torchvision
torch.cuda.is_available()

在这里插入图片描述

错误信息

在这里插入图片描述
解决办法链接

Anaconda>DLLs,重启shell

3、detectron2环境

在此路径下,激活detectron2环境,输入:

python setup.py build develop

在这里插入图片描述
成功安装detectron2。

在安装detecteron中,遇到报错:

error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe’ failed with exit code 1
解决办法:

找到如下文件:

detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cudetectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cu

// Copyright (c) Facebook, Inc. and its affiliates.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/cuda/CUDAGuard.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#ifdef WITH_CUDA
#include "../box_iou_rotated/box_iou_rotated_utils.h"
#endif
// TODO avoid this when pytorch supports "same directory" hipification
#ifdef WITH_HIP
#include "box_iou_rotated/box_iou_rotated_utils.h"
#endif

修改为

// Copyright (c) Facebook, Inc. and its affiliates.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/cuda/CUDAGuard.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
/*#ifdef WITH_CUDA
#include "../box_iou_rotated/box_iou_rotated_utils.h"
#endif
// TODO avoid this when pytorch supports "same directory" hipification
#ifdef WITH_HIP
#include "box_iou_rotated/box_iou_rotated_utils.h"
#endif*/
#include "box_iou_rotated/box_iou_rotated_utils.h"

修改完毕之后,再次运行 python setup.py build develop。

编译的时候failed with exit status 1错误

编译的时候,我们遇到了“command ‘…/…/bin/nvcc.exe’ failed with exit status 1”,修改策略
“…/…/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu” 文件中#include “…” 路径错误 ,然后编译成功。

运行demo.py

python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input rgb.png --output 1.png --opts MODEL.WEIGHTS model_final_f10217.pkl
http://www.tj-hxxt.cn/news/82319.html

相关文章:

  • 北京东城网站建设公司网推公司干什么的
  • 泉州市做网站优化东莞seo外包
  • 网址你会回来感谢我seo初学教程
  • 个人网站建设优化电脑优化大师下载安装
  • 做网站主要栏目内小说网站排名人气
  • 网站必须做公安部备案济南最新消息今天
  • 秦皇岛网站群发关键词搜索引擎有哪些类型
  • 常州小程序开发公司seoul是哪个城市
  • 做网站怎么变现百度指数可以查询多长时间的
  • 网站建设管理情况报告技术短期培训班
  • 美国网站后缀电脑优化
  • 中原郑州网站建设交换链接营销案例
  • 自己做网站要会什么优化建站
  • 苏州工业园区做政务网站的公司域名注册需要什么条件
  • 成都 做网站成都全网营销推广
  • 任丘建设银行网站应用商店下载
  • 电子商务网站建设和推广 范文app优化
  • 拿来做软件测试的网站怎么建立自己的网站
  • wordpress评论feed搜索引擎优化的方法包括
  • 网站建设优化排名网站制作多少钱
  • 内江今日头条新闻长沙竞价优化
  • 怎样做网站导航界面百度推广年费多少钱
  • 没有服务器怎么做网站seo服务外包费用
  • 公司网站如何做分录seo知名公司
  • 建立淘宝客网站南宁百度快速优化
  • 泉州有专门帮做网站的吗郑州本地seo顾问
  • 品牌建设对企业的作用数字营销服务商seo
  • 做网站计划表苏州旺道seo
  • 网页在线制作网站企业营销网站建设系统
  • 做淘宝类网站windows优化软件