Add test and measurement pipeline steps #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
For the scope of my Final Paper, I've continued your work by finishing the test (prediction) with an extra measurement step, which takes the average PSNR and SSIM score for the resulting super-resolved image from each model, and saves it into a JSON within the experiment folder of that specific model. This is all done in "metrics.py", which expects a folder with the original HR images.
I've also fixed an unintended bug in start_here.sh where the folder name casing where the experiments are saved from the training, were not coherent with how they are expected in your predict.py.
NT: This diff is incomplete for merging, and I'd like guidance how to proceed.
I manually downscaled all images I used to predict. They were 256x256 images of galaxies, and I downscaled them using bicubic to 128x128. First, I had ran training of models using DIV2K, with patches sized 128, and factor of 2. But whenever I tried running the tests pointing to the Galaxy datasource, I had errors because it tried to cut patches from it.
For the purposes of finishing tests, I conditionally excluded the lines that were causing it (with a flag) in SRData. I don't understand well why it didn't work, but it seems it's because my LR images already are the size of the patches.
Other improvements to be made before merging