centos配置pytorch1.6+cudnn=7.6.5 mmdetection

用30系列显卡:

conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit==11.2 cudnn==8.1.0 

1、升级Driver Version

2、conda create -n pt1.6 python=3.7.0

3、conda activate pt1.6

4、

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
# 设置搜索时显示通道地址 从channel中安装包时显示channel的url,这样就可以知道包的安装来源
conda config --set show_channel_urls yes

6、pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==1.6.0 torchvision==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

7、conda install cudatoolkit=10.2.89

8、conda install cudnn=7.6.5

9、参考运行mmdetection 看mmdetection要求pytorch的版本

https://blog.csdn.net/qq_30121457/article/details/112591430

pip install -r requirements/build.txt -f https://download.pytorch.org/whl/torch_stable.html

10、PyCharm远程运行调试代码

https://zhuanlan.zhihu.com/p/38591832

11、自动更新修改的代码

 12、最好用

mmdetection教程(使用篇)_哔哩哔哩_bilibili

看这个教程里有转换coco格式的方法

1.COCO format
2.Pycocotools
3.Browse dataset

https://github.com/Chien-Hung/DetVisGuI/tree/mmdetection

用这个可以可视化测试集图片等

13、不要把文件命名为test_ 开头,不然会调用本程序自己的pytest.ini,导致无法调试

不然会出现Python_test 项目让文件无法运行

14、可以在pycharm里 tools----start ssh 来在pycharm中远程调试命令框

15、远程服务器改运行项目的路径

(1)通过file--setting--Project--Python Interpreter--Path mappings里添加编译器的路径

(2)在通过tools--developement---configure--本远程项目--root path里调整

16、Root URL is not sprcified.解决方案

https://blog.csdn.net/dom_l_z/article/details/105908227

17、有时候远程连接不上是development里的mapping路径没有设置好,需要打上/

18、远程显示服务器的文件

点击工具栏 Tools -> Deplotment -> Browse Remote Host 来打开相应的 RemoteHost面板,这个面板显示的就是服务器上的文件

19、远程用jupyter notebook

pycharm远程jupyter(机翻) - 知乎

远程jupyter+pycharm配置 (一)之安装与使用技巧 - wqbin - 博客园

设置一个密码,以避免每次输入token。

c.NotebookApp.token=“yourpassword"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值