Hi, when I was trying to reimplement DFL by tensorflow 2.0, I found that the images my decoders generated had a bad background which didn't happened when I run the code in your repo. However, when I reviewed your code, it seemed that you didn't training the background(hair or something) as well when you set mask_training = True and bg_style_power=False, because I thought your code here ignored the background of the reconstruction image by multiplying the image and the mask:
gpu_target_src_masked_opt = gpu_target_src*gpu_target_srcm_blur if masked_training else gpu_target_src
gpu_target_dst_masked_opt = gpu_target_dst_masked if masked_training else gpu_target_dst
gpu_pred_src_src_masked_opt = gpu_pred_src_src*gpu_target_srcm_blur if masked_training else gpu_pred_src_src
gpu_pred_dst_dst_masked_opt = gpu_pred_dst_dst*gpu_target_dstm_blur if masked_training else gpu_pred_dst_dst
so I wonder how you make the background stable even if your didn't train the background, or did I miss something important?
Ablation study shows that there is something wrong with gan training. When I set gan_power=0, the output seems similar to the image generated by this repo.
Hi, when I was trying to reimplement DFL by tensorflow 2.0, I found that the images my decoders generated had a bad background which didn't happened when I run the code in your repo. However, when I reviewed your code, it seemed that you didn't training the background(hair or something) as well when you set
mask_training = True
andbg_style_power=False
, because I thought your code here ignored the background of the reconstruction image by multiplying the image and the mask:so I wonder how you make the background stable even if your didn't train the background, or did I miss something important?
Here is my settings
This is my output (eyes masked for privacy issue):
This is the expected output from this repo:
reimplement environment