Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test on Rain100L,PSNR #35

Open
zhousai-zs opened this issue Sep 3, 2024 · 5 comments
Open

test on Rain100L,PSNR #35

zhousai-zs opened this issue Sep 3, 2024 · 5 comments

Comments

@zhousai-zs
Copy link

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
Copy link
Author

zhousai-zs commented Sep 3, 2024

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.

@bo-oseng
Copy link

I have exactly same issue for Rain100L, PSNR 37.44.

@Gdw040199
Copy link

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.

@bo-oseng
Copy link

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 👍

@Dilemma-CMZ
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants