02 2020 档案
摘要:a=torch.rand(32,1) a.expend(imgs.size()) >>>RuntimeError: The expanded size of the tensor (256) must match the existing size (32) at non-singleton dim
阅读全文
摘要:nn.MSELoss()得到的是平均到像素的loss nn.MSELoss(size_average=False)得到整个batch所有像素loss和 MSELoss(size_average=False).div(batch_size)得到平均图像loss a=torch.Tensor([[1,1
阅读全文
摘要:1. su 进入root权限 2. 更改目录的修改权限至所有人 chmod 777 -R /home/cike 参考: https://blog.csdn.net/zsg88/article/details/74937871?depth_1-utm_source=distribute.pc_rele
阅读全文
摘要:https://www.cnblogs.com/wanghui-garcia/p/10895397.html
阅读全文
摘要:ANTsPy主页:https://github.com/ANTsX/ANTsPy ANTsPy官方文档:https://antspyx.readthedocs.io/_/downloads/en/latest/pdf/ 配准ants.registration() import os import a
阅读全文
摘要:当训练数据量不能被batch_size大小整除时,余下的部分会作为最后一批 保存生成图像时,应指定生成数量为batch_size,而不是dataloader中的img.size(0) 应为z = Variable(torch.randn(batch_size, z_dimension)).cuda(
阅读全文
摘要:https://www.jianshu.com/p/814d65a9c404
阅读全文
摘要:原始的GAN衡量分布间距离的方法是JS Divergence 而JS Div无法衡量两个没有交集分布间的距离(均为log 2) 用Wasserstain Distance,P&Q分布转换的最小距离 Discriminator必须足够光滑,否则会无限拉开real和fake之间的距离,无法收敛 1-Li
阅读全文

浙公网安备 33010602011771号