def __init__(self, nz=30):
super(Generator, self).__init__(
l0z=L.Linear(nz, 6 * 6 * 128, wscale=0.02 * math.sqrt(nz)),
dc1=L.Deconvolution2D(128, 64, 4, stride=2, pad=1, wscale=0.02 * math.sqrt(4 * 4 * 128)),
dc2=L.Deconvolution2D(64, 32, 4, stride=2, pad=1, wscale=0.02 * math.sqrt(4 * 4 * 64)),
dc3=L.Deconvolution2D(32, 1, 4, stride=2, pad=1, wscale=0.02 * math.sqrt(4 * 4 * 32)),
bn0l=L.BatchNormalization(6 * 6 * 128),
bn0=L.BatchNormalization(128),
bn1=L.BatchNormalization(64),
bn2=L.BatchNormalization(32)
)
评论列表
文章目录