NTIRE 2023 HR NonHomogeneous Dehazing Challenge Forum

Go back to competition Back to thread list Post in this thread

> Error during submitting

I am getting following error during running of PSNR estimation,

Traceback (most recent call last):
File "/tmp/codalab/tmpvvLqSC/run/program/evaluation.py", line 108, in
compute_psnr(ref_im,res_im)
File "/tmp/codalab/tmpvvLqSC/run/program/evaluation.py", line 43, in compute_psnr
return output_psnr_mse(
File "/tmp/codalab/tmpvvLqSC/run/program/evaluation.py", line 18, in output_psnr_mse
squared_error = np.square(img_orig - img_out)
ValueError: operands could not be broadcast together with shapes (5998,3998,4) (5998,3998,3)

img_orig should be RGB right, so why they are taking 4 channels?

Posted by: Subhajit1998 @ March 16, 2023, 2:07 p.m.

Test images have 4 channels, So you must during the testing your model convert Test images to 3 channels, apply your model, and convert it again to 4 channels.

Posted by: AnasM @ March 18, 2023, 7:09 a.m.
Post in this thread