Repository navigation
Conversation
|
Thanks for all the work on Okeinla! This is just a first look at the code; a fuller review will follow. No linear variant. The package only has The Suggestion: use the ONNX you already publish. Your Hugging Face repo already has checkpoints:
- url: "https://huggingface.co/AyedaOk/okeinla/resolve/7d4480d305ac9a425832afb9c110ee0b1af0200a/onnx/model_bayer.onnx"
path: "output/rawdenoise-okeinla/model_bayer.onnx"The CI: please drop the change to What the tests cover is mostly covered already:
To cover the non-RGGB path instead, add a BGGR, GRBG or GBRG raw to |
|
Hi Andrii, thanks for the review. With a23d571, I use the published ONNX, removed the converter, and CI change. I' ve also updated the PR description to mention the shared Bayer cropping fix. With 3a79dcc I've added a GBRG sample. Both demos process it. Note that I've noticed a brightness strip in Okeinla’s Python demo. The demo applies gain correction after stitching, while darktable corrects each tile and blends overlaps. With darktable, I don't see any issues. I can add the demo correction to the PR if you want. Is a linear variant mandatory for acceptance, or can Okeinla remain Bayer-only? If it is mandatory, I will need a few weeks to train it. |
Bayer-only is a bad limitation, would be nice to lift it. |
Without at least Linear variant model can not become default one, but we can still have it in the catalog even in limited form. |
|
I prepared everything to train a linear variant but it takes longer than Bayer for training. I can't run it 24/7, so I will need about 1-2 months before it's ready. I'm fine if you want to wait for the linear variant before adding it to the catalog. |
Hi Andrii,
I believe RawForge is the best FOSS denoising model, but integrating it with Darktable isn't simple. So in the last few months, I've been experimenting with training my own denoising model. I've started with RawNIND and then integrated RawForge's losses. I've also added my own training data. I named the end result Okeinla.
Based on my "trust me bro" benchmark, it performs better than RawNIND and is on par with RawForge.
This is the data I used for testing: https://huggingface.co/datasets/AyedaOk/rawbench-dataset. I can upload the testing stript if you want.
If I missed something in the PR, let me know.
Integration
This PR downloads the published Bayer ONNX from Hugging Face revision
7d4480d305ac9a425832afb9c110ee0b1af0200aand packages it with GPLv3 and NAFNet MIT license texts. It uses the existing setup, validation and demo pipeline without adding per-model unit tests or shared CI changes.This PR also fixes the shared RawNIND demo’s non-RGGB Bayer preprocessing by cropping to RGGB before packing, matching the training loader and darktable’s force_rggb handling.
Added a CC0 Panasonic DMC-GF1 RAW from raw.pixls.us (entry 880) with a verified GBRG pattern to exercise the crop. Both Okeinla and RawNIND demos processed it successfully. Source, license and SHA256 are recorded alongside the sample.