上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 72 下一页

2021年4月2日

vgg等模型下载很慢

摘要: vgg等模型由于权限或网速原因无法在云服务器正常下载 可以先下载好放到本地(有时候在云服务器上没有权限下载) import torch import torch.nn as nn import torch.nn.functional as F from torchvision import mode 阅读全文

posted @ 2021-04-02 09:50 cltt 阅读(277) 评论(0) 推荐(0) 编辑

关于gan的基本介绍

摘要: https://zhuanlan.zhihu.com/p/40402713 阅读全文

posted @ 2021-04-02 09:45 cltt 阅读(51) 评论(0) 推荐(0) 编辑

matab 从多个文件夹读数据,分别计算指标

摘要: clear all; close all; clc load modelparameters.mat blocksizerow = 96; blocksizecol = 96; blockrowoverlap = 0; blockcoloverlap = 0; dataset = {'DICM',' 阅读全文

posted @ 2021-04-02 09:43 cltt 阅读(112) 评论(0) 推荐(0) 编辑

2021年4月1日

os.listdir()顺序

摘要: import os from PIL import Image path = './input' file_list = os.listdir(path) for i in range(len(file_list)): print(file_list[i]) import os from PIL i 阅读全文

posted @ 2021-04-01 15:03 cltt 阅读(606) 评论(0) 推荐(0) 编辑

2021年3月31日

文件权限

摘要: chmod -R 777 xxx -R递归子文件夹 赋予所有人权限 su root 进入root 用户exit 退出root用户ls -l 查看隐藏文件 阅读全文

posted @ 2021-03-31 18:05 cltt 阅读(33) 评论(0) 推荐(0) 编辑

torch cuda torchvision 版本对应关系

摘要: cuda torch 参考链接:https://blog.csdn.net/weixin_42069606/article/details/105198845?utm_medium=distribute.wap_relevant.none-task-blog-BlogCommendFromMachi 阅读全文

posted @ 2021-03-31 16:33 cltt 阅读(3937) 评论(0) 推荐(0) 编辑

文件目录

摘要: Linux中“./”在系统文件中表示绝对路径的意思。 linux系统中,所有的文件与目录都是由根目录/开始,不是以/开头的就是相对路径; 1、“.”表示当前目录,也可以用“./”表示; 2、“..”表示上一级目录,也可以用“../”表示; 3、“~” 代表用户自己的宿主目录; 4、“/”处于Linu 阅读全文

posted @ 2021-03-31 16:29 cltt 阅读(247) 评论(0) 推荐(0) 编辑

2021年3月27日

watch -n 0.1 nvidia-smi 命令不显示PID进程号

摘要: 执行代码 ps aux|grep root|grep python 再kill 相应PID即可 阅读全文

posted @ 2021-03-27 21:33 cltt 阅读(815) 评论(0) 推荐(0) 编辑

2021年3月15日

torch.mul() 和 torch.mm() 区别

摘要: torch.mul(a, b)是矩阵a和b对应位相乘,a和b的维度必须相等,比如a的维度是(1, 2),b的维度是(1, 2),返回的仍是(1, 2)的矩阵torch.mm(a, b)是矩阵a和b矩阵相乘,比如a的维度是(1, 2),b的维度是(2, 3),返回的就是(1, 3)的矩阵 阅读全文

posted @ 2021-03-15 17:23 cltt 阅读(545) 评论(0) 推荐(0) 编辑

2021年3月14日

nn.PixelShuffle

摘要: class torch.nn.PixleShuffle(upscale_factor) 这里的upscale_factor就是放大的倍数,数据类型为int。 例子 >>> ps = nn.PixelShuffle(3) >>> input = torch.tensor(1, 9, 4, 4) >>> 阅读全文

posted @ 2021-03-14 21:41 cltt 阅读(809) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 72 下一页

导航