上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 原因:这个原因是因为在使用Crossentropyloss作为损失函数时,output=net(input)的output应该是[batchsize, n_class, height, weight],而label则是[batchsize, height, weight],label是单通道灰度图; 阅读全文
posted @ 2020-04-09 11:39 DuanYongchun 阅读(12303) 评论(0) 推荐(1)
摘要: 在出现错误的地方加上: 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 阅读(30492) 评论(1) 推荐(1)
摘要: 【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 阅读(271) 评论(0) 推荐(1)
摘要: 下载文件:(由于外网下载较慢,所以这里采用清华源镜像下载)清华源镜像网站 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 阅读(3784) 评论(0) 推荐(0)
摘要: 执行命令:(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 阅读(8359) 评论(0) 推荐(0)
摘要: 前言 在很多场景下,我们需要使用Windows系统远程访问Ubuntu系统,传统的连接方式有(1)通过SSH服务连接,也就是只有终端的形式;(2)通过图形界面访问服务器。通过SSH服务连接很简单,这里不做介绍,通过图形界面访问主要有xrdp和vnc两种方式,本文我主要介绍通过xrdp连接服务器。 U 阅读全文
posted @ 2020-04-07 15:28 DuanYongchun 阅读(1666) 评论(0) 推荐(0)
摘要: 简单K折交叉验证源码:( 将数据集拆分为k个连续的折叠(默认情况下不进行混洗)。 然后将每个折叠用作一次验证,而剩下的k-1个折叠形成训练集。 ) import numpy as np from sklearn.model_selection import KFold X = np.array([[ 阅读全文
posted @ 2020-04-07 09:23 DuanYongchun 阅读(708) 评论(0) 推荐(0)
摘要: 前期准备 下载3DSlicer并安装: 3DSlicer官网(http://www.slicer.org)或者直接下载(https://download.slicer.org),需要注意目前该插件只支持最新的3DSlicer Preview版本(4.11.x) 官网下载速度慢,直接百度网盘: 链接: 阅读全文
posted @ 2020-04-05 15:37 DuanYongchun 阅读(4172) 评论(7) 推荐(1)
摘要: 原因:有时我们进行远程连接时需要知道我们的Ubuntu系统已安装的桌面环境,这时我们可以使用【dpkg】命令。 【dpkg】:dpkg命令是Debian Linux系统用来安装、创建和管理软件包的实用工具。 在终端输入命令查看已安装桌面环境: (base) duanyongchun@hc1217:~ 阅读全文
posted @ 2020-03-30 23:37 DuanYongchun 阅读(6308) 评论(0) 推荐(0)
摘要: 原因:动态链接库丢失或路径找不到 解决:执行下列命令即可 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 阅读(3715) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页