会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
油嘴滑舌
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
2020年4月9日
RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 11.00 GiB total capacity; 8.53 GiB already allocate解决办法
摘要: 在出现错误的地方加上: with torch.no_grad(): test_loader = init_data_loader(X_test, y_test, torch.device('cpu'), batch_size, num_workers=0) print("Starting infer
阅读全文
posted @ 2020-04-09 00:50 DuanYongchun
阅读(30525)
评论(1)
推荐(1)
2020年4月8日
Linux系统查看当前操作系统的版本信息
摘要: 【uname -a】 【cat /proc/version】 【cat /etc/redhat-release】 查看详细信息 wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.
阅读全文
posted @ 2020-04-08 09:35 DuanYongchun
阅读(290)
评论(0)
推荐(1)
2020年4月7日
Ubuntu安装Anaconda3与环境变量配置教程
摘要: 下载文件:(由于外网下载较慢,所以这里采用清华源镜像下载)清华源镜像网站 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2020.02-Linux-x86_64.sh (1)cd 到刚刚下载的.sh文件所在目
阅读全文
posted @ 2020-04-07 22:41 DuanYongchun
阅读(3807)
评论(0)
推荐(0)
ModuleNotFoundError: No module named 'apex'解决办法
摘要: 执行命令:(Linux与Windows均适用) $ git clone https://github.com/NVIDIA/apex $ cd apex $ pip install -v --no-cache-dir --global-option="--cpp_ext" --global-opti
阅读全文
posted @ 2020-04-07 18:26 DuanYongchun
阅读(8416)
评论(0)
推荐(0)
xrdp实现Windows10远程访问Ubuntu 18.04
摘要: 前言 在很多场景下,我们需要使用Windows系统远程访问Ubuntu系统,传统的连接方式有(1)通过SSH服务连接,也就是只有终端的形式;(2)通过图形界面访问服务器。通过SSH服务连接很简单,这里不做介绍,通过图形界面访问主要有xrdp和vnc两种方式,本文我主要介绍通过xrdp连接服务器。 U
阅读全文
posted @ 2020-04-07 15:28 DuanYongchun
阅读(1700)
评论(0)
推荐(0)
K-Folds cross-validator-K折交叉验证实现
摘要: 简单K折交叉验证源码:( 将数据集拆分为k个连续的折叠(默认情况下不进行混洗)。 然后将每个折叠用作一次验证,而剩下的k-1个折叠形成训练集。 ) import numpy as np from sklearn.model_selection import KFold X = np.array([[
阅读全文
posted @ 2020-04-07 09:23 DuanYongchun
阅读(746)
评论(0)
推荐(0)
2020年4月5日
医学图像分割-在3DSlicer中使用英伟达的AI辅助工具NvidiaAIAssistedAnnotation自动切割医学图像教程
摘要: 前期准备 下载3DSlicer并安装: 3DSlicer官网(http://www.slicer.org)或者直接下载(https://download.slicer.org),需要注意目前该插件只支持最新的3DSlicer Preview版本(4.11.x) 官网下载速度慢,直接百度网盘: 链接:
阅读全文
posted @ 2020-04-05 15:37 DuanYongchun
阅读(4333)
评论(7)
推荐(1)
2020年3月30日
Ubuntu系统下命令行查看自己已安装的桌面环境问题
摘要: 原因:有时我们进行远程连接时需要知道我们的Ubuntu系统已安装的桌面环境,这时我们可以使用【dpkg】命令。 【dpkg】:dpkg命令是Debian Linux系统用来安装、创建和管理软件包的实用工具。 在终端输入命令查看已安装桌面环境: (base) duanyongchun@hc1217:~
阅读全文
posted @ 2020-03-30 23:37 DuanYongchun
阅读(6430)
评论(0)
推荐(0)
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
摘要: 原因:动态链接库丢失或路径找不到 解决:执行下列命令即可 wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
阅读全文
posted @ 2020-03-30 20:26 DuanYongchun
阅读(3746)
评论(0)
推荐(0)
Ubuntu系统安装wxPython问题
摘要: wxPython介绍 wxPython是Python语言的GUI工具包,作为Python的扩展模块实现,包装了wxWidgets。wxPython是跨平台的,开源的。详情 wxPython安装 (1)Windows10安装:在Windows系统上安装比较简单,直接执行命令【pip install w
阅读全文
posted @ 2020-03-30 20:24 DuanYongchun
阅读(1713)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
下一页
公告