Closed JJASMINE22 closed 1 year ago
Thanks for your issue, I did find the gradient explosion problem after replacing the backstone, now I used your code to train again and it did solve the problem, the loss curve is also normal compared to before. before:
after:
According to the generator's style loss provided by https://github.com/TachibanaYoshino/AnimeGANv2/blob/617ab10ce21877df90c9cf2b705712bc81b1e2e6/tools/ops.py Maybe function gram() should be expressed like:
Otherwise, it may cause generator gradient explosion, and difficult to achieve Antagonism effect