DehazeNet_Pytorch icon indicating copy to clipboard operation
DehazeNet_Pytorch copied to clipboard

The effect of the result image is very poor, how should I modify the code?

Open Niisti opened this issue 3 years ago • 5 comments

I ran the DehazeNet-pytorch.py. Then I got a result image like this: test

While its origin like this: 8

Please tell me what to do to correct the image!!

Niisti avatar May 01 '21 10:05 Niisti

I have encountered the same problem. Could I ask you if the problem have been solved?

kkkcx avatar Aug 20 '21 04:08 kkkcx

请问这个问题解决了吗?求解决方法

sun0912704 avatar Mar 30 '22 10:03 sun0912704

求解决方法

sun0912704 avatar Mar 30 '22 10:03 sun0912704

保存结果的时候换一种保存方式就好了,比如用 torchvision.utils.save_image(torch.cat((img2, img3), 0), "DehazeNet_results/" + pic_dir.split("\")[-1])

daiqingyue avatar Mar 01 '23 01:03 daiqingyue

DehazeNet_pytorch.py的195行和196行的defog_img = transforms.ToPILImage()(img2)和defog_img.save('/home/panbing/PycharmProjects/defog/test/test.jpg')注释掉,改为torchvision.utils.save_image(img2, './test.jpg')

wxydaydayup avatar Apr 24 '23 09:04 wxydaydayup