lucidrains / lightweight-gan

Implementation of 'lightweight' GAN, proposed in ICLR 2021, in Pytorch. High resolution image generations that can be trained within a day or two
MIT License
1.63k stars 222 forks source link

How can I make a gif that loops seamlessly? #88

Open kwdvt opened 3 years ago

kwdvt commented 3 years ago

Thank you for the interesting library. The library is working fine.

I'm using "--generate-interpolation" to generate a gif. I want the last frame and the first frame to be seamlessly connected when playing a gif in a loop. Is there any such way? What should I change to something below to make it?

thanks

https://github.com/lucidrains/lightweight-gan/blob/0e146946a82c69d227e9536c404cca004e7f4c48/lightweight_gan/lightweight_gan.py#L1363-L1397