tamarott / SinGAN

Official pytorch implementation of the paper: "SinGAN: Learning a Generative Model from a Single Natural Image"
https://tamarott.github.io/SinGAN.htm
Other
3.29k stars 608 forks source link

Fix wrong pairing between files in SIFID #136

Closed benfei closed 1 year ago

benfei commented 3 years ago

We encountered a bug when different images were compared to each other. The root cause is that glob(...) doesn't always keep order, so files1 and files2 were ordered differently. A fix for that bug was sorting files1 and files2. We assume that in each list, all the paths are in the same directory, and that files have the same name between the two lists - so sorting the two lists would guarantee a matching order.