-
Notifications
You must be signed in to change notification settings - Fork 280
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
Padding #27
Comments
Where to add the setting you've given? |
Can you tell me please? |
Hello, I wrote some testing code myself. In this repo, the psnr result is not calculated. You have to do some coding. I can only give you some pseudo code: (1) Read the original image (label) |
This actually saved my life. PSNR was around 11 for me before padding. Using @EricS-TW 's solution, now my PSNR Is around 21. |
I have discovered something about testing. You have to pad your left and top of your label image to be 6 and you can calculate the rest part. The result psnr will be better and closer to the paper. The setting is like:
height_padding = {} ; width_padding = {}
height_padding['top'] = 6
height_padding['buttom'] = int(abs(result.shape[0] - label.shape[0]) - height_padding['top'])
width_padding['left'] = 6
width_padding['right'] = int(abs(result.shape[1] - label.shape[1]) - width_padding['left'])
The text was updated successfully, but these errors were encountered: