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
How to use #2
Comments
Hi, |
Thanks Niklas! Look forward to seeing it. |
I've added a Demo.py script along with a default workflow for degrading typical images. If you want to also downscale the images for your SR network, then downscale those before running the degradation. However, you'll need to build the wrapper for the Intel IPP libraries if you want to use the demosaicing as well. This should be fairly straightforward under Windows with the provided Visual Studio project files (you'll only need to install the Intel IPP libraries and adapt the additional library and include directories of the Visual Studio project to point to the targeted python version and compile as a Release x64 library). |
Thank you, I'm excited to try this. The Intel IPP libraries setup is the part I'm most confused about. I'm using a conda environment on Windows. |
Figured it out with the help of Gemini. Generated results look promising! |
Open the PyIPP.sln file in Visual Studio: Ideally pull the repo again, as I've increased the amount of degradation applied by the random_degrade routine (I ran a quick test of training an SR network and it interpreted some noise as detail for some of my noisier real example images). |
Oh nice! I guess I'll just leave this here in case someone else runs into the same problem as you. |
Thank you for this Project. |
Hi @Phhofm, yes that's certainly a possibility and could be used as a replacement. The main reason why I used the IPP library is that it supports the AHD demosaicing algorithm which is commonly used (as well as the VNG algorithm). It also has a (likely very optimized) native C++ implementation of the supported algorithms, which likely beats implementations relying on numpy in terms of performance. |
Hi,
I have a collection of ~58k HR images for use in training SISR.
I would like to use your code to synthesize their LR pairs.
I'm finding it rather confusing and I'm not really sure how to go about this.
I would greatly appreciate some dumbed-down instructions, if possible.
Kind regards,
terrainer
The text was updated successfully, but these errors were encountered: