上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: import os import numpy as np # # name:txt文件名 # rootdir:根路径 # metaimage:原始图像路径 # imglabel:标签图像路径 # def write_to_txt(name, root_dir, metaimage, imglabel 阅读全文
posted @ 2020-04-11 00:11 DuanYongchun 阅读(1782) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/XunCiy/article/details/89070315?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1&utm_s 阅读全文
posted @ 2020-04-10 18:16 DuanYongchun 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: import torch # 如正常则静默 a = torch.Tensor([1.]) # 如正常则静默 a.cuda() # 如正常则返回"tensor([ 1.], device='cuda:0')" from torch.backends import cudnn # 如正常则静默 cudn 阅读全文
posted @ 2020-04-10 17:21 DuanYongchun 阅读(13572) 评论(0) 推荐(0) 编辑
摘要: Ubuntu系统执行: sudo apt-get install libgeos-dev CentOS系统执行: sudo yum install geos-devel 阅读全文
posted @ 2020-04-10 10:41 DuanYongchun 阅读(5732) 评论(0) 推荐(0) 编辑
摘要: Linux: cat /usr/local/cuda/version.txt Windows: # Windows终端 nvcc --version 阅读全文
posted @ 2020-04-10 07:09 DuanYongchun 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 首先用root用户登录,cd到home目录:执行命令: # 查看删除账户命令 userdel -h # 删除账户 userdel -r duanyongchun(要删除的账户名) 阅读全文
posted @ 2020-04-09 13:14 DuanYongchun 阅读(947) 评论(0) 推荐(0) 编辑
摘要: 原因:这个原因是因为在使用Crossentropyloss作为损失函数时,output=net(input)的output应该是[batchsize, n_class, height, weight],而label则是[batchsize, height, weight],label是单通道灰度图; 阅读全文
posted @ 2020-04-09 11:39 DuanYongchun 阅读(11973) 评论(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 阅读(30223) 评论(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 阅读(259) 评论(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 阅读(3550) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页