CycleGAN-Tensorflow-2 icon indicating copy to clipboard operation
CycleGAN-Tensorflow-2 copied to clipboard

Translated output are blurry

Open supritbansod opened this issue 3 years ago • 1 comments

Hi Lynn Ho,

I applied the tensorflow-2 cycleGAN implementation on my own dataset. The output translated images are blurry. I went through the paper of cycleGAN but could not find a parameter to be fine-tuned in case of blurriness. Do you have any idea how this can be solved? Also, how gradient penalty mode and gradient penalty weight parameters in the train.py script works?

supritbansod avatar May 16 '21 11:05 supritbansod

@supritbansod Try to decrease cycle_loss_weight(or increase the adversarial loss weight, hard coded as 1) or train it with a sufficiently long time. But I am not sure whether it will work, maybe CycleGAN is not suitable for your data.

I do not very understand your second question, you can find the code of gradient penalty here. https://github.com/LynnHo/CycleGAN-Tensorflow-2/blob/1aa6398d918875a1cf25320881d09b7d9f3f63b8/tf2gan/loss.py#L86

LynnHo avatar May 18 '21 08:05 LynnHo