Repository navigation
🧹The release brings a big code cleanup, and significantly improves the robustness mask.
Reworked Robustness mask
I realised that in order to detect artefacts, robustness has to be computed in a relevant perceptual space.
By comparing with what was done for TAA, and by reading the blog of Wronski, I realise that
an approximation to map the linear space to a perceptually relevant space. Therefore, it makes sense to apply it before computing the
local std and colour distance.
Reworked Noise Handling
The previous non-linearity motivates greatly the need to use a monte-carlo approach to model the effect of noise on
I used numba's jit to write an accurate Monte-Carlo script, it runs in 5 seconds and generate both curves we need
One important detail is whether or not white balance should be applied. I don't think they did in the original implementation, because each white balance would require a new specific curve which would be impractical. My guess it that they only computed one pair of curve per iso.
Overall, the new robustness mask is far more satisfactory.
New features
- The white balance is no longer applied (only during post-processing if enabled)
- Improved SNR estimation that make a better use of the nosie profile
- The GAT now makes a better use of the noise profile
- Tyro based configuration replaces omegaconf. Easier arguments and documentation
- New option to disable noise-correction
- The
--debugflag is now very useful: it dumps .png of the alignment, guide frame, image pyramid, aligned guide, etc. - Add a new option to control preprocessing before alignment and kernel computation (gamma, gat, sqrt, etc). Useful to compare startegies
- Rewrote post processing: better colour conversion and removed useless options like de-vignette etc
- Add new gray method : "demosaicing", that uses a dull Menon demosaicing followed by averaging. It is slow and meant for comparing
- Add an option to override the estimated SNR by a user defined one
- Use bilinear flow upscale mode by default
Fixes
- Tiny bugs on the alignment code were fixed
- The linear kernel selection law had a issue
Others
- Removed all the accumulated-robustness-based post-processing. It was not useful, complexified the code, and made the original method harder to analyze