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

Fail to replicate PSNR of CUFED on paper #43

Closed
wdmwhh opened this issue Oct 11, 2021 · 6 comments
Closed

Fail to replicate PSNR of CUFED on paper #43

wdmwhh opened this issue Oct 11, 2021 · 6 comments

Comments

@wdmwhh
Copy link

wdmwhh commented Oct 11, 2021

Hello, thanks for sharing your great work.
I try to replicate PSNR (27.09) in Table 1 of the paper. As shown in Table 4, PSNR in L1 of CUFED5 (_1.png) is 26.99. I think that 27.09 is using multiple references (_1.png, *_2.png, *_3.png, *_4.png, *_5.png) without a second thought. Thus, I pad all the refs to size [500, 500] and vertically concat to be one big ref [2500, 500].
However, no matter which padding type is used, the PSNR is around 26.4, not to reach 27.09. Could you tell me some details to help?

@FuzhiYang
Copy link
Member

What about your performance using only L1 ref?

@wdmwhh
Copy link
Author

wdmwhh commented Oct 11, 2021

What about your performance using only L1 ref?

26.991 (consistent with the paper)

@FuzhiYang
Copy link
Member

Did you use resize to process different Refs? Resize will damage the performance.

Just pad each Ref to the left-top corner in each 500x500 zero image. Then concate them to 2500x500 image. There are no other tricks.

@wdmwhh
Copy link
Author

wdmwhh commented Oct 11, 2021

I didn't use resize. This is my code for TestSet_multi https://pastebin.com/n1DfaffB.

@wdmwhh
Copy link
Author

wdmwhh commented Oct 11, 2021

In addition, I have tried all borderTypes -- cv2.BORDER_CONSTANT, cv2.BORDER_REFLECT, cv2.BORDER_REFLECT_101, cv2.BORDER_REPLICATE,
cv2.BORDER_WRAP.

@wdmwhh
Copy link
Author

wdmwhh commented Oct 11, 2021

Sorry, I make a mistake. Thanks for your prompt and kind reply. Best Wishes for you.

@wdmwhh wdmwhh closed this as completed Oct 11, 2021
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

2 participants