VQGAN-pytorch icon indicating copy to clipboard operation
VQGAN-pytorch copied to clipboard

real image in save results looks strange

Open uyo9ko opened this issue 2 years ago • 2 comments

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]))

uyo9ko avatar Jan 30 '23 03:01 uyo9ko

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]))

Ukuer avatar Apr 16 '23 05:04 Ukuer

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

clearlyzero avatar May 16 '23 02:05 clearlyzero