The Darktable Denoise module is able to determine the correct iso setting for default denoise processing, but is selecting a generic ISO setting rather than one for my camera profile. I can select the camara specific one from the available list which results in a slightly better denoise than the generic. Why is it not selecting correctly for my camera (I have displayed the camera model with the image and EXIF data in the image matches the model exif used in the denoise module.
Welcome to the community. Maybe give a bit more details like camera model and ISO values you are using.
Is this a single image or all images from your camera? Also, I find the generic profile dreadful when it is applied and would not use the generic profile as there will be better denoising options available in other modules in this case.
Welcome to pixls!
Sorry, I replied before may morning coffee.
I see now that your camera is listed and you checked the EXIF.
Could there be an extra space, or some other easily missed detail is mismatched? Or maybe even something else.
Exif.Image.Make / Exif.Image.Model are used, falling back to Exif.PanasonicRaw.Make / .Model.
Trailing spaces are removed.
The fields are then ācanonicalisedā against rawspeed and libraw. This means that, given an entry in rawspeedās cameras.xml like
<Camera make="NIKON CORPORATION" model="NIKON Z 6_2" mode="14bit-compressed">
<ID make="Nikon" model="Z 6_2">Nikon Z 6 2</ID>
the actual lookup in the JSON noise profile file will be performed with the values from the 2nd line.
Aliases are also supported:
<Camera make="Canon" model="Canon EOS 250D">
<ID make="Canon" model="EOS 250D">Canon EOS 250D</ID>
<Aliases>
<Alias id="EOS Kiss X10">Canon EOS Kiss X10</Alias>
<Alias id="EOS Rebel SL3">Canon EOS Rebel SL3</Alias>
Finally, without an ID, the canonical values are just the EXIF make/model.
Missing ISO values are interpolated between existing entries, but thereās no extrapolation or any other fallback. So, if you have profile entries between 200 and 6400, any value between them works, but if you use an unprofiled value outside that range, say 8000, the generic Poissonian fallback kicks in.
Thanks for the comments so far. The camera is an EOS R6 MK II and the Exif data appears on the face of to to reflect exactly that in the denoise module list. Thatās what is throwing me. Every time I turn on the module, it selects the correct ISO but only a generic one, not the camera specific one. I canāt believe that a camera so widely use as the EOS R6 is not being interpreted successfully by DT?!?
I also had the same question. I use the Sony a6700 and will see the automatically selected option as the generic entry for my iso value. But when I expand the list of options, I then see below it the device specific iso options. I wondered if the default entry was generic or perhaps device specific, but merely not naming the device. Seems like youāre having the same experience and question that I had.
@Dave_W, this may be a known issue specific to the R6 Mark II rather than a problem with your setup.
Internally the camera identifies itself as Canon EOS R6m2. āEOS R6 Mark IIā is the friendlier name darktable displays. Its CR3 files are decoded by LibRaw rather than rawspeed, so the cameras.xml canonicalisation @kofa described doesnāt apply to this body. The names come from darktableās own LibRaw name mapping instead.
Noise profile lookup compares the model string exactly. If darktable looks up Canon EOS R6m2 but the profile entry is stored as EOS R6m2 (or EOS R6 Mark II), they wonāt match, and the module falls back to generic Poissonian. That fallback is still scaled to your ISO, which is why the ISO looks right.
This exact mismatch for the R6 Mark II was reported in darktable issue #14029. The debug log there showed Canon EOS R6m2 vs EOS R6m2 failing to match, and it was described as a known issue without an obvious fix at the time. I havenāt confirmed whether it still applies in 5.6.2.
To confirm on your machine:
- Start darktable from a terminal with
darktable -d control, open an R6 II raw, and turn on denoise (profiled). - Look for a line like
[noiseprofile] looking for maker 'ā¦', model 'ā¦'. - Compare those strings with the R6 Mark II entry in your installed
noiseprofiles.json.
If they differ, thatās the cause, and adding your log output to #14029 (or opening a new issue) would help get it fixed. If they match exactly, check whether your ISO is above the highest ISO profiled for this camera. As kofa mentioned, thereās no extrapolation, so an out-of-range ISO also falls back to generic.
Meanwhile, picking the R6 II profile by hand, as youāve been doing, is a reasonable workaround. You can save it as a preset that applies automatically to this camera.
Thanks Nick. Iāll try this. What are the equivalent steps in an iMac. Donāt seem to be able to execute the command or find the json file.
@Dave_W, on a Mac darktable is an app bundle, so both the program and the JSON file sit inside darktable.app. Hereās how to do it on your iMac:
1. Quit darktable, then open Terminal (Applications ā Utilities ā Terminal).
2. Start darktable with debug output, showing only the noise-profile lines. Paste this and press Return:
/Applications/darktable.app/Contents/MacOS/darktable -d control 2>&1 | grep -i noiseprofile
darktable will open as usual. Open one of your R6 II raws in the darkroom and turn on denoise (profiled). Back in Terminal you should see a line like:
[noiseprofile] looking for maker `Canon', model `ā¦'
Thatās the exact maker/model darktable is trying to match. You can quit darktable afterwards.
3. Check what the profile file calls your camera. In a new Terminal window, paste:
grep -n '"model": "EOS R6' /Applications/darktable.app/Contents/Resources/share/darktable/noiseprofiles.json
That lists the R6-family entries in the file. If it prints nothing, try grep -n 'R6' on the same file instead. If youād rather browse it, in Finder right-click darktable.app ā Show Package Contents and go to Contents/Resources/share/darktable/noiseprofiles.json.
If you installed darktable another way (Homebrew or MacPorts, say), or keep it somewhere other than Applications, the paths will differ. Let me know and we can adjust them.
Please post the output of steps 2 and 3, plus the ISO of the image you tested. That should show whether itās the name mismatch from issue #14029 or an ISO outside the profiled range.
For what itās worth, I also found the answer to my question and confusion about my a6700 not being named automatically. This might not be the same as what you are seeing, but I wanted to share in case it was helpful information.
Nothing is wrong: āfound ISO 8000ā is the ILCE-6700 iso 8000 profile, just under a different label.
The first entry in that dropdown is always the automatic one. When the module loads, it gets the noise profiles for your camera model, then looks for one whose ISO equals the imageās EXIF ISO. If one matches exactly, it copies that profileās coefficients and labels the entry āfound ISO 8000ā (src/iop/denoiseprofile.c:2848-2865). If the ISO falls between two profiles, it blends them and the label says āinterpolated ISO ā¦ā. The label never shows the camera name, but the numbers are the same as āILCE-6700 iso 8000ā.
The difference is what happens to the edit later:
- automatic (found/interpolated): the module saves a marker (
a[0] = -1) instead of fixed numbers. Each time it processes an image, it matches again using that imageās ISO (:2920-2931). So if you copy the edit or a style to an ISO 3200 shot, it switches to the 3200 profile on its own. - āILCE-6700 iso 8000ā picked by hand: the ISO 8000 numbers are saved into the edit. They stay the same on any image you paste them onto, which is wrong for a shot at a different ISO.
So keep the automatic entry; you only need a named one to override the match on purpose. I read the code but didnāt run it on your file, and I donāt see a bug, so Iām not proposing any change.
Thanks Nick. Sounds like what you are saying is itās just a presentation thing within the module. i.e even though it just says āfound ISO 6400ā, what it actually means is ā Iāve found EOS R6 MK II ISO 6400ā. This would make sense as I do see the same consistent behaviour for older photos with my 5D MK II and older Panasonic cameras.
I had thought that selecting the same ISO from the list did provide a better denoise outcome but sounds like I may have been mistaken.
Thanks for your help with this.
Dave