New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black picture with flimic rgb #3128
Comments
What if you change the chroma preservation mode ? |
It stays black if I change the chroma preservation mode. |
Reverting 0d01bb0 doesn't fix it. |
what if you move filmic before input profile or after output profile ? That could be related to RGB spaces conversions. |
Moving it before input profile works |
Moving it after output profile works too! |
Do you want the XMP? |
So it's definitely linked to the colour conversion. If you put filmic back between input and output colour profile, but change the working RGB space (in input profile), does it change anything ? (please try internal RGB spaces like rec2020 and possibly spaces provided by ICC profiles in ~.config/darktable/colorin). I have 2 bets here:
|
The input profile is the standard color matrix and the working profile is rec2020. Changing doesn't do anything to the image only to the histogram. |
You may want to check again with master, an OpenCL fix has been put in place. |
This wasn't fixed for me by #3129 unfortunately. I was also about to report this one. |
With master I get now:
|
@cryptomilk : this hasn't changed so I supposed you already had this warning before. |
BTW, I cannot reproduce so maybe an iop-order issue. Can you reproduce this with new edits? |
data/kernels/filmic.cl:231 should call |
@cryptomilk what if you revert 26341e0 ? |
@flannelhead what GPU do you run ? AMD as well ? |
I have Intel UHD 620, using the Intel Compute Runtime OpenCL driver on Arch Linux. |
@TurboGit it needs to be: |
Fixed. Thanks. |
We can do a debugging session tomorrow if someone is interested ... :-) |
I'm able to reproduce on Intel OpenCL, which is weird because I developed with it. |
Ok, issues don't affect colorbalance, so the changes done in Putting any native Lab module (tone curve, levels…) in the RGB parts of the pipe works properly, so the RGB -> Lab -> RGB path works. Putting any native RGB module (filmic, channel mixer) in the Lab parts of the pipe breaks, so the Lab -> RGB -> Lab path is failing. Nvidia OpenCL is fine in all cases though. |
Fun fact: the preview renders correctly :-) |
@cryptomilk: do you mean the low-resolution view before the full-res image is rendered (pardon my ignorance, not yet familiar with darktable lingo)? If yes, that's the case for me as well. There are indeed interesting lines in darktable debug log if started with
The preview seems to use a different device id. -1 means no OpenCL, I guess. Edit: Consistently with the above, the thumbnail is rendered black for me as well. |
Also something else that happens on my system: only with |
Previews usually use C SSE2 code path, unless you set the OpenCL perf profile to "very fast GPU". I think we are dealing with low-level issues on memory allocation done differently between GPU vendors. I will keep investigating. |
I've changed
to
and it seems to work now! |
I don't now if this needs to be a multiple of 2. But setting it to 2047, I get a black picture. |
I think increasing opencl_memory_requirement can only have one effect - disabling OpenCL in darktable. |
@parafin can you explain in more detail? The GPU has 8GB of memory. |
@parafin Ok, you're right -> Sorry for the noise. |
@cryptomilk could you checkout on a48ea3e, run on OpenCL, enable the channel mixer module, ensure it is between input and output profile, and report if the image is still black ? On Intel Neo drivers, I get the same error (black picture) prior the commits introducing Filmic RGB OpenCL and other OpenCL colour space conversions optimizations, so it seems that this bug was there for a longer time. |
@aurelienpierre Checking out a48ea3e, everything works just fine. The picture is rendered correctly, even if I enable the channel mixer. |
Works for me since the merge of #3189 :) |
This has been fixed with #3189 |
I still have it on 3.1.0+8~g7871a4f25-dirty. FilmicRGB with color preservation set to RGB (norm) plus Local Contrast enabled caused black field instead of image. Disabling LC causes washed out colors (HDR-style looking), after few manipulation it gets to normal. Disabling OpenCL seems to fix it. Steps to reproduce the behavior (darkroom mode):
Platform
|
Describe the bug
I've edited a few photos with 'filmic rgb' already. With the latest master 0ae2c5c those pictures are rendered to completely black. Disabling filmic rgb doesn't fix it. If I go in the history stack back to the item before filmic was enabled the first time it works again ...
I'm using OpenCL (AMD ROCm)
@aurelienpierre
The text was updated successfully, but these errors were encountered: