03 2021 档案

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

posted @ 2021-03-31 18:05 cltt 阅读(35) 评论(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 阅读(3967) 评论(0) 推荐(0) 编辑

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

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

图像数据读取
摘要:input_list = sorted([os.path.join("/root/userfolder/cl/TTSR/dataset/CUFED/train/input/input", name) for name in os.listdir("/root/userfolder/cl/TTSR/d 阅读全文

posted @ 2021-03-31 15:12 cltt 阅读(166) 评论(0) 推荐(0) 编辑

watch -n 0.1 nvidia-smi 命令不显示PID进程号
摘要:执行代码 ps aux|grep root|grep python 再kill 相应PID即可 阅读全文

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

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 阅读(553) 评论(0) 推荐(0) 编辑

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 阅读(814) 评论(0) 推荐(0) 编辑

F.unfold F.fold F.normalize()
摘要:import torch.nn.functional as F F.unfold https://blog.csdn.net/qq_34914551/article/details/102940368 F.normalize()https://blog.csdn.net/ECNU_LZJ/artic 阅读全文

posted @ 2021-03-14 15:11 cltt 阅读(1184) 评论(0) 推荐(0) 编辑

torch.gather()
摘要:作用:收集输入的特定维度指定位置的数值参数:input(tensor): 待操作数。不妨设其维度为(x1, x2, …, xn)dim(int): 待操作的维度。index(LongTensor): 如何对input进行操作。其维度有限定,例如当dim=i时,index的维度为(x1, x2, …y 阅读全文

posted @ 2021-03-13 16:43 cltt 阅读(212) 评论(0) 推荐(0) 编辑

tensor 3维分块乘法
摘要:a = torch.range(1,4) a = a.reshape(2,1,2) b= torch.range(1,12) b = b.reshape(2,2,3) c = torch.bmm(a,b) print('c') print(c) print(c.shape) d = torch.ze 阅读全文

posted @ 2021-03-13 15:31 cltt 阅读(213) 评论(0) 推荐(0) 编辑

github 无法访问
摘要:增加或修改github.com github.global.ssl.fastly.net 具体请参考: https://www.cnblogs.com/haolb123/archive/2021/03/11/14516542.html https://jingyan.baidu.com/articl 阅读全文

posted @ 2021-03-04 08:52 cltt 阅读(85) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示