PromptIR icon indicating copy to clipboard operation
PromptIR copied to clipboard

test on Rain100L,PSNR

Open zhousai-zs opened this issue 1 year ago • 6 comments

I'm using the official model.ckpt on Rain100L and measured a PSNR of 37.44, which is significantly different from the paper report. Could you explain why?

zhousai-zs avatar Sep 03 '24 09:09 zhousai-zs

What should I do to correct this error?


TypeError: The classmethod `PromptIRModel.load_from_checkpoint` cannot be called on an instance. Please call it on the class type and make sure the return value is used.
=================================
ValueError: win_size exceeds image extent. Either ensure that your images are at least 7x7; or pass win_size explicitly in the function call, with an odd value less than or equal to the smaller side of your images. If your images are multichannel (with color channels), set channel_axis to the axis number corresponding to the channels.

zhousai-zs avatar Sep 03 '24 10:09 zhousai-zs

I have exactly same issue for Rain100L, PSNR 37.44.

bo-oseng avatar Sep 11 '24 04:09 bo-oseng

What should I do to correct this error?

TypeError: The classmethod PromptIRModel.load_from_checkpoint cannot be called on an instance. Please call it on the class type and make sure the return value is used.

ValueError: win_size exceeds image extent. Either ensure that your images are at least 7x7; or pass win_size explicitly in the function call, with an odd value less than or equal to the smaller side of your images. If your images are multichannel (with color channels), set channel_axis to the axis number corresponding to the channels.

Have you solve this problem? I have met the same Error.

Gdw040199 avatar Sep 24 '24 06:09 Gdw040199

What should I do to correct this error?

TypeError: The classmethod PromptIRModel.load_from_checkpoint cannot be called on an instance. Please call it on the class type and make sure the return value is used.

ValueError: win_size exceeds image extent. Either ensure that your images are at least 7x7; or pass win_size explicitly in the function call, with an odd value less than or equal to the smaller side of your images. If your images are multichannel (with color channels), set channel_axis to the axis number corresponding to the channels.

Have you solve this problem? I have met the same Error.

Check skimage version is "scikit-image==0.19.3" or not 👍

bo-oseng avatar Sep 25 '24 04:09 bo-oseng

change net = PromptIRModel().load_from_checkpoint(ckpt_path).to(device) to net = PromptIRModel.load_from_checkpoint(ckpt_path).to(device) can solve the problem

mingzhi2004 avatar Oct 18 '24 10:10 mingzhi2004

I'm using the official model.ckpt on Rain100L and measured a PSNR of 37.44, which is significantly different from the paper report. Could you explain why?

请问这个数据集Rain100L 你们是从哪里获取的

yangw8 avatar Jul 02 '25 16:07 yangw8