models.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:simple-pix2pix-pytorch 作者: Eiji-Kb 项目源码 文件源码
def forward(self, x1, x2):
        h = self.c0(torch.cat((x1, x2),1))
        h = self.bnc1(self.c1(F.leaky_relu(h, negative_slope=0.2)))
        h = self.bnc2(self.c2(F.leaky_relu(h, negative_slope=0.2)))
        h = self.bnc3(self.c3(F.leaky_relu(h, negative_slope=0.2)))
        h = self.c4(F.leaky_relu(h, negative_slope=0.2))
        h = F.sigmoid(h)

        return h
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号