Closed diegothomas closed 1 year ago
Hi, thank you for giving attention to our work.
We utilize the full image PSNR for evaluation; therefore, the background color significantly impacts the results. It is crucial to maintain a consistent background color for both training and evaluation and ensure the same calculation method across different approaches for a fair comparison.
When calculating the PSNR, we encode the colors as float values in the range of [0, 1].
Thank you!
Hello. Thank you for your nice work. I think your project is very interesting and I am now trying to reproduce similar results as you show on your paper. I have two questions about how to compute the PSNR values. I see in your code in run.py l. 165:
p = -10. np.log10(np.mean(np.square(rgb - gt_imgs[i]))) back_p, fore_p = 0., 0. if masks is not None: back_p = -10. np.log10(np.sum(np.square(bg_rgb - bg_gt))/np.sum(1-mask)) fore_p = -10. * np.log10(np.sum(np.square(rgb - gt_imgs[i]))/np.sum(mask))
I would really apreciate if you can clarify these points.