上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 63 下一页
摘要: motivation Existing works usually reconstruct the data points on the original view directly, and generate the individual subspace representation for e 阅读全文
posted @ 2020-05-12 17:40 Picassooo 阅读(445) 评论(0) 推荐(0) 编辑
摘要: motivation High-order statistics that can only be captured by simultaneously utilizing all views are often overlooked. This paper proposed a novel mul 阅读全文
posted @ 2020-05-11 23:52 Picassooo 阅读(488) 评论(0) 推荐(0) 编辑
摘要: *args 当函数参数数目不确定时,‘*’将一组位置参数打包成一个参数值容器。 def demo(a, *args): print('a:', a) print('args:', args) print('type of args:', type(args)) print('length of ar 阅读全文
posted @ 2020-05-11 13:43 Picassooo 阅读(173) 评论(0) 推荐(0) 编辑
摘要: argparse包的一个作用是我们可以通过命令行来更改程序中的参数,就是说可以在不修改程序的情况下更改一些需要调整的参数。下面举一个例子。 实例 假设我们写了一个求圆柱体体积的程序: import math def cylinder_volume(redius, height): vol = mat 阅读全文
posted @ 2020-05-10 21:24 Picassooo 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 爱因斯坦求和约定,Kronecker-delta符号 阅读全文
posted @ 2020-05-10 12:50 Picassooo 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 在PyTorch自定义数据集中,我们介绍了如何通过重写Dataset类来自定义数据集,但其实对于图像数据,自定义数据集有一个更简单的方法,那就是直接调用ImageFolder,它是torchvision.datasets里的函数。 ImageFolder介绍 ImageFolder假设所有的文件按文 阅读全文
posted @ 2020-05-09 11:04 Picassooo 阅读(3551) 评论(0) 推荐(0) 编辑
摘要: PyTorch中Dataset, DataLoader, Sampler的关系可用下图概括: 用文字表达就是:Dataloader中包含Sampler和Dataset,Sampler产生索引,Dataset拿着这个索引在数据集文件夹中找到对应的样本(每个样本对应一个索引,就像列表中每个元素对应一个索 阅读全文
posted @ 2020-05-08 23:09 Picassooo 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 数据传递机制 我们首先回顾识别手写数字的程序: ... Dataset = torchvision.datasets.MNIST(root='./mnist/', train=True, transform=transform, download=True,) dataloader = torch. 阅读全文
posted @ 2020-05-07 23:29 Picassooo 阅读(6048) 评论(2) 推荐(1) 编辑
摘要: 参考资料: 几分钟听懂迭代器 【哔哩哔哩教程】 (迭代器讲的很好) Python迭代器与生成器介绍及在Pytorch源码中应用 Python 迭代器深入讲解 |【AsyncIO从入门到放弃#1】 (生成器讲得很好) Python进阶 | 五分钟带你弄懂迭代器与生成器 迭代器 在python中,如果一 阅读全文
posted @ 2020-05-07 18:44 Picassooo 阅读(488) 评论(0) 推荐(0) 编辑
摘要: python之shutil模块 阅读全文
posted @ 2020-05-07 16:39 Picassooo 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 63 下一页