I trained a small neural network for demosaicing on X-Trans sensors. On my dataset, it quickly outperforms Markesteijn (the OpenCL implementation from darktable). The model was trained on a Mac, and inference takes about 0.6 seconds for a 40MP image.
I believe the model can be further improved with more data and synthetic inputs. It could also be extended to jointly perform demosaicing and denoising.
Checkpoint takes ~630Kb for float32 precision.
I am not sure what to do with this model. I was thinking to either make a pull request to integrate it to darktable or rawtherapee. Or make a standalone native mac app for raw processing (x-trans demosaic was actually the most difficult part).
Yet, this week Apple announced new native raw processing api, so not sure that open source app is still a good idea.
I don’t know if you’ll find many people interested in using it, u less it gets integrated into a well used raw editor.
Most of the Fuji owners are not pixel peeping, especially with the current generation of sensors. I was interested when I had my X-T1, but not since I’ve upgraded.