BookerDeWitt / MSBDN-DFF

The source code of CVPR 2020 paper "Multi-Scale Boosted Dehazing Network with Dense Feature Fusion"
334 stars 69 forks source link

the probelm of test with '.png' #1

Open yinxuping opened 4 years ago

yinxuping commented 4 years ago

excuse me , I have a question. when I test with my date set , it comes the error : The size of tensor a (1088) must match the size of tensor b (1080) at non-singleton dimension 2 . My data set end with '.png' , I had try the other images which end with 'png',but still meet this error. But the image end with ‘jpg’ works well. how can I solve it. thanks a lot.

yinxuping commented 4 years ago

I have solve this problem by resizing the image.

yxysday commented 4 years ago

I have solve this problem by resizing the image.

Hi, yinxuping. I got that problem too. Can you tell me what size you used to resize it?

yinxuping commented 4 years ago

I have solve this problem by resizing the image.

Hi, yinxuping. I got that problem too. Can you tell me what size you used to resize it?

I guess the anthor use RESIDE dataset , so I resize the picture as (480,640)

ZunxiaoXu commented 4 years ago

作者网络中有将特征尺寸除以2再乘回来的操作,好像是连续四次缩小尺寸的操作,所以要保证图像初始尺寸能整除16,不然乘回来跟原尺寸有出入。我猜的

Walstruzz commented 4 years ago

@893205894 https://github.com/BookerDeWitt/MSBDN-DFF/blob/dc5061208dd97c664b36b47d78e6d5a11e3d42db/networks/MSBDN-DFF-v1-1.py#L185 发现作者其实有加upsample

hangxiaotian commented 4 years ago

excuse me , I have a question. when I test with my date set , it comes the error : The size of tensor a (1088) must match the size of tensor b (1080) at non-singleton dimension 2 . My data set end with '.png' , I had try the other images which end with 'png',but still meet this error. But the image end with ‘jpg’ works well. how can I solve it. thanks a lot.

我和你遇到的问题一模一样,您如何解决的呢

hangxiaotian commented 4 years ago

作者网络中有将特征尺寸除以2再乘回来的操作,好像是连续四次缩小尺寸的操作,所以要保证图像初始尺寸能整除16,不然乘回来跟原尺寸有出入。我猜的

我也遇到了一模一样的问题,如何解决呢

hangxiaotian commented 4 years ago

I have solve this problem by resizing the image.

您修改后的代码,可否给我发一份呀?

ZunxiaoXu commented 4 years ago

作者网络中有将特征尺寸除以2再乘回来的操作,好像是连续四次缩小尺寸的操作,所以要保证图像初始尺寸能整除16,不然乘回来跟原尺寸有出入。我猜的

我也遇到了一模一样的问题,如何解决呢

没用这份代码了,将input resize成16的倍数试试?

hangxiaotian commented 4 years ago

‘jpg’ works well

我的jpg格式也不行

hangxiaotian commented 4 years ago

作者网络中有将特征尺寸除以2再乘回来的操作,好像是连续四次缩小尺寸的操作,所以要保证图像初始尺寸能整除16,不然乘回来跟原尺寸有出入。我猜的

我也遇到了一模一样的问题,如何解决呢

没用这份代码了,将input resize成16的倍数试试?

好的我试试,作者为啥不回复提问的人呢?发了邮件也不回复。