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

after using Numpy the result image looks like discolored and dark #2

Open
abbasfaramarziyan opened this issue Jul 14, 2023 · 2 comments

Comments

@abbasfaramarziyan
Copy link

Hi
I used Numpy code to restore the Image but no matter what Image I used the final result is discoloured and dark. can you help to resolve the issue please?
woman_srcnn_x3

@Fivefold
Copy link
Owner

Hello @abbasfaramarziyan, are you running this on a Zedboard? And are you using the fpga2 mode of the Cython implementation by any chance? We had an as of yet unresolved bug when running in that mode and using input images larger than 99x99 pixels. The pictures looked very similar to the one you posted here.

Try to follow the steps in https://github.com/Fivefold/SRCNN/blob/main/Cython/README.md if you haven't done so already and try an input image of 99x99 pixels or less, ideally with a 1:1 aspect ratio.

Also please note that the bug persisted even with smaller images once it happened. The only way to remove it was to reboot the Zedboard.

@Fivefold
Copy link
Owner

Sorry, I didn't see you explicitly say you were using the Numpy code. We didn't ever have the bug with that implementation, and I don't have the time to test this unfortunately.

Do try to use an input image smaller than 99x99 pixels though, maybe that helps.

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