PaddlePaddle / PaddleGAN

PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.9k stars 1.24k forks source link

这边按照[文档](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/zh_CN/tutorials/wav2lip.md)运行的方式,paddlepaddle生成器的输出形状是(128,3,96,96),通道数是3。注意到,该模型生成器代码最后有个判断分支可能会影响输出数据的形状,可以在相应的套件issue问下该分支的作用。 #834

Closed drakitLiu closed 9 months ago

drakitLiu commented 9 months ago
          这边按照[文档](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/zh_CN/tutorials/wav2lip.md)运行的方式,paddlepaddle生成器的输出形状是(128,3,96,96),通道数是3。注意到,该模型生成器代码最后有个判断分支可能会影响输出数据的形状,可以在相应的套件issue问下该分支的作用。
        x = self.output_block(x)
        if input_dim_size > 4:
            x = paddle.split(x, int(x.shape[0] / B), axis=0)
            outputs = paddle.stack(x, axis=2)

        else:
            outputs = x

Originally posted by @zhiminzhang0830 in https://github.com/PaddlePaddle/Paddle/issues/61142#issuecomment-1909475259