dome272 / VQGAN-pytorch

Pytorch implementation of VQGAN (Taming Transformers for High-Resolution Image Synthesis) (https://arxiv.org/pdf/2012.09841.pdf)
MIT License
443 stars 73 forks source link

real image in save results looks strange #4

Open uyo9ko opened 1 year ago

uyo9ko commented 1 year ago

in the train_vqgan.py, the code real_fake_images = torch.cat((imgs[:4], decoded_images.add(1).mul(0.5)[:4])) should be revised real_fake_images = torch.cat((imgs.add(1).mul(0.5)[:4], decoded_images.add(1).mul(0.5)[:4]))

Ukuer commented 1 year ago

change

real_fake_images = torch.cat((imgs[:4], decoded_images.add(1).mul(0.5)[:4]))

to

real_fake_images = torch.cat((imgs.add(1).mul(0.5)[:4], decoded_images.add(1).mul(0.5)[:4]))
clearlyzero commented 1 year ago

Hello, I have also been researching vqgan recently. May I ask if your network has good convergence performance.