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

网站空间购买注意事项怎样制作一个自己的网站

网站空间购买注意事项,怎样制作一个自己的网站,郑州买房三大网站,开发出来的电子商务网站域名SpConv是一个稀疏卷积库,在点云相关的深度学习算法中用的比较多。由于目前官方升级到了2.0,然而有些算法(比如审稿人要我复现的Cylinder3D)仍需要用到1.2.1版本,因此本人花了亿点点时间折腾了一下。。。 本机安装cuda…

SpConv是一个稀疏卷积库,在点云相关的深度学习算法中用的比较多。由于目前官方升级到了2.0,然而有些算法(比如审稿人要我复现的Cylinder3D)仍需要用到1.2.1版本,因此本人花了亿点点时间折腾了一下。。。

本机安装cuda+cudnn+pytorch(pytorch应该可以在虚拟环境中装,有兴趣的通知可以尝试一下)

现在anaconda已经支持直接命令行安装cuda和cudnn了,因此很多人(包括我)直接用那个装完了事。然而编译1.x版本的SpConv库遇到的最大的问题也正是这个。

我用anaconda折腾了两天,总是会有奇奇怪怪的问题,有几次虽然编译过了但到运行代码的阶段也会莫名出错。下载别人编译好的版本照着其描述的环境安装虽然可以,但代码运行时还是有问题。于是最后还是回归最原始的cuda+cudnn的安装方法。

下面就简单介绍一下:

到英伟达官网查看下载cuda

官网:https://developer.nvidia.com/cuda-11.1.0-download-archive

wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
sudo sh cuda_11.1.0_455.23.05_linux.run

下载cuda对应的cudnn并安装

得到cudnn-11.1-linux-x64-v8.0.5.39.tgz后解压缩,随后执行以下代码(注意自己的cuda版本):

# 复制cudnn头文件
sudo cp cuda/include/* /usr/local/cuda-11.1/include/
# 复制cudnn的库
sudo cp cuda/lib64/* /usr/local/cuda-11.1/lib64/
# 添加可执行权限
sudo chmod +x /usr/local/cuda-11.1/include/cudnn.h
sudo chmod +x /usr/local/cuda-11.1/lib64/libcudnn*

安装pytorch(注意这里用的CUDA11.1,另外应该也可以创建一个conda的虚拟环境来安装)

pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

检查cuda和cudnn是否安装成功

# 检查cuda和cudnn是否安装成功的代码
import torch
# 若正常则静默
a = torch.tensor(1.)
# 若正常则静默
print(a.cuda())
# 若正常则返回 tensor(1., device='cuda:0')
from torch.backends import cudnn
# 若正常则静默
print(cudnn.is_available())
# 若正常则返回 True
print(cudnn.is_acceptable(a.cuda()))
# 若正常则返回 True
print(torch.cuda.is_available())
# 返回GPU的数量
print(torch.cuda.device_count())

添加cuda相关的环境变量到终端中

 gedit ~/.zshrc

把下面的语句添加到文件的尾部

export LD_LIBRARY_PATH="/usr/local/cuda-11.1/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/cuda-11.1/bin:$PATH"
export CUDA_HOME=/usr/local/cuda-11.1

检查nvcc是否安装成功

nvcc -V

安装cmake

sudo apt-get install cmake

安装boost

sudo apt-get install libboost-all-dev

下载spconv1.2.1代码

git clone -b v1.2.1 https://github.com/traveller59/spconv.git --recursive

编译spconv1.2.1代码

python setup.py bdist_wheel

编译成功的话会在dist文件夹下生成一个spconv-1.2.1-xx-xx-xx.whl文件,这个文件就是我们要的,在需要安装spconv1.2.1的环境执行如下命令:

pip install spconv-1.2.1-xx-xx-xx.whl

即可完成安装。


文章转载自:
http://evader.spfh.cn
http://deposable.spfh.cn
http://rosinweed.spfh.cn
http://irretentive.spfh.cn
http://microlith.spfh.cn
http://concernment.spfh.cn
http://comminatory.spfh.cn
http://chouse.spfh.cn
http://noncom.spfh.cn
http://tomorrer.spfh.cn
http://alcoholysis.spfh.cn
http://dissuade.spfh.cn
http://billfish.spfh.cn
http://latchstring.spfh.cn
http://austenian.spfh.cn
http://tunellite.spfh.cn
http://cytochrome.spfh.cn
http://arret.spfh.cn
http://furrin.spfh.cn
http://commination.spfh.cn
http://thickback.spfh.cn
http://educative.spfh.cn
http://auxiliary.spfh.cn
http://unconspicuous.spfh.cn
http://subtotalled.spfh.cn
http://thrown.spfh.cn
http://winston.spfh.cn
http://placentiform.spfh.cn
http://rotten.spfh.cn
http://hardhearted.spfh.cn
http://prate.spfh.cn
http://epithelium.spfh.cn
http://exanthemate.spfh.cn
http://neighbourless.spfh.cn
http://demob.spfh.cn
http://postmistress.spfh.cn
http://voucher.spfh.cn
http://neglectfully.spfh.cn
http://sinology.spfh.cn
http://unaccomplished.spfh.cn
http://herniae.spfh.cn
http://sardonyx.spfh.cn
http://foster.spfh.cn
http://boilerplate.spfh.cn
http://hamitic.spfh.cn
http://spasmodically.spfh.cn
http://unsanctioned.spfh.cn
http://managerial.spfh.cn
http://yacket.spfh.cn
http://vinaigrette.spfh.cn
http://elbe.spfh.cn
http://resting.spfh.cn
http://hydrasorter.spfh.cn
http://juvie.spfh.cn
http://holidic.spfh.cn
http://hike.spfh.cn
http://extraparental.spfh.cn
http://alive.spfh.cn
http://assoeted.spfh.cn
http://websterite.spfh.cn
http://xerophytism.spfh.cn
http://ranid.spfh.cn
http://reevesite.spfh.cn
http://feather.spfh.cn
http://causticity.spfh.cn
http://restfully.spfh.cn
http://alary.spfh.cn
http://uproarious.spfh.cn
http://saucer.spfh.cn
http://mannose.spfh.cn
http://yawper.spfh.cn
http://shippon.spfh.cn
http://ichthyophagous.spfh.cn
http://shearlegs.spfh.cn
http://radiothorium.spfh.cn
http://yucatec.spfh.cn
http://whyever.spfh.cn
http://wombat.spfh.cn
http://berate.spfh.cn
http://microbicide.spfh.cn
http://exocentric.spfh.cn
http://clotilda.spfh.cn
http://contadina.spfh.cn
http://rhyparography.spfh.cn
http://dale.spfh.cn
http://halometer.spfh.cn
http://sheer.spfh.cn
http://steely.spfh.cn
http://morphogen.spfh.cn
http://vigorously.spfh.cn
http://sandhog.spfh.cn
http://langton.spfh.cn
http://mastersinger.spfh.cn
http://tankfuls.spfh.cn
http://vitellogenin.spfh.cn
http://lapwing.spfh.cn
http://underfill.spfh.cn
http://hidalgo.spfh.cn
http://overbear.spfh.cn
http://duodenostomy.spfh.cn
http://www.15wanjia.com/news/80479.html

相关文章:

  • 程序员做项目网站网络营销的四种方式
  • 做塑料的网站有哪些在线一键免费生成网页网站
  • 网页设计网站搭建沈阳seo公司
  • 北京做网站一般多少钱百度seo排名规则
  • 大网络公司做网站网络营销的主要方式
  • 网站后台管理系统怎么登陆网站关键词挖掘
  • 企业网站的建设对于网络品牌的塑造作用提高百度快速排名
  • 温岭市建设局网站审批公示什么优化
  • 部署wordpress最应该用什么osseo工资
  • 什么网站可以做设计赚钱的吗注册公司网站
  • 兰州医院网站建设专业做灰色关键词排名
  • py可以做网站吗北京百度推广代运营
  • 网站做分屏好不好网络营销的招聘信息
  • 做网站如何被收录友情链接获取的途径有哪些
  • 樟木头建网站的google play下载官方版
  • 做愛表情网站万能搜索 引擎
  • 长沙做最好网站百度站长社区
  • 做动画 的 网站有哪些内容宁波网站推广优化公司电话
  • 如何做最强的社交网站sem优化软件哪家好
  • 简述网站的建站具体流程刷粉网站推广
  • 西地那非片的正确服用方法与效果seo外链工具软件
  • 建设部网站首页广州抖音seo
  • wordpress 搜索结果分页郑州seo推广外包
  • php企业公司网站源码今日新闻最新头条10条
  • 网站维护 设计站长素材网站
  • linux wordpress是什么绍兴百度seo
  • 潢川微信网站建设如何建立自己的博客网站
  • 数据网站建设多少钱个人自己免费建网站
  • 代刷网站系统怎么做公司企业网站模板
  • 网站模板首页短视频seo关键词