摘要:chmod -R 777 xxx -R递归子文件夹 赋予所有人权限 su root 进入root 用户exit 退出root用户ls -l 查看隐藏文件
阅读全文
摘要:cuda torch 参考链接:https://blog.csdn.net/weixin_42069606/article/details/105198845?utm_medium=distribute.wap_relevant.none-task-blog-BlogCommendFromMachi
阅读全文
摘要:Linux中“./”在系统文件中表示绝对路径的意思。 linux系统中,所有的文件与目录都是由根目录/开始,不是以/开头的就是相对路径; 1、“.”表示当前目录,也可以用“./”表示; 2、“..”表示上一级目录,也可以用“../”表示; 3、“~” 代表用户自己的宿主目录; 4、“/”处于Linu
阅读全文
摘要: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
阅读全文
摘要:执行代码 ps aux|grep root|grep python 再kill 相应PID即可
阅读全文
摘要: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)的矩阵
阅读全文
摘要:class torch.nn.PixleShuffle(upscale_factor) 这里的upscale_factor就是放大的倍数,数据类型为int。 例子 >>> ps = nn.PixelShuffle(3) >>> input = torch.tensor(1, 9, 4, 4) >>>
阅读全文
摘要: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
阅读全文
摘要:作用:收集输入的特定维度指定位置的数值参数:input(tensor): 待操作数。不妨设其维度为(x1, x2, …, xn)dim(int): 待操作的维度。index(LongTensor): 如何对input进行操作。其维度有限定,例如当dim=i时,index的维度为(x1, x2, …y
阅读全文
摘要: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
阅读全文
摘要:增加或修改github.com github.global.ssl.fastly.net 具体请参考: https://www.cnblogs.com/haolb123/archive/2021/03/11/14516542.html https://jingyan.baidu.com/articl
阅读全文