-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
[Bug] Add Noise node is way too powerful #3048
Comments
I have had a moment to look for the code and see how it works. https://github.com/chaiNNer-org/chaiNNer/pull/1251/files I can see that it seems to work as follows:
I will have to think about a solution when I have time. Easiest would be to make the node input a float in range 0.0 - 100.0, so people can write whatever they want. By adding a single decimal to the slider, we make the noise pixel amount range go in steps of This solves it and makes the slider fine-grained enough to add fine grain. Badum-tish. It would probably also be backwards compatible with old chainner chain configs that rely on the old values. So I favor this solution rather than making the slider longer and more divided. When I have time, I will do some tests. So far this is theoretical and I am not at a computer. 😉 |
…-org#3048) Implements fine-grained control over the noise amount, by switching to a float-based noise multiplier instead. (The previous implementation was only able to generate noise in increments of +2.55 on the 0-255 pixel luminance scale.)
Information:
Description
When you want to add camera sensor noise to an image, you need fine control over the Gaussian noise.
ChaiNNer's Add Noise node is extremely heavy-handed. Even at the lowest value, 1, it adds waaaay too much noise to the image:
It seems like it might be throwing an integer into an algorithm that should be using a low-value float. The amount of noise it adds at the lowest setting is extreme!
The solution: Make the control even finer, by turning the INTEGER slider into a FLOAT slider.
I can perform a very slow workaround for this problem (it takes around 1 second to process this per image):
It would be much better if the Add Noise node was fixed to use a working scale parameter, because Add Noise runs in a few milliseconds compared to 1 second for my workaround. :D
The text was updated successfully, but these errors were encountered: