Variation logic behind KSampler Inspire.
Opened this issue · 5 comments
When I first created the variation feature, I reflected a simple mixing ratio based on the strength between the noise generated by the two seeds and the variation seed, mixing them linearly.
However, during testing, I found that as the strength approached 0.5, a blurring effect occurred. Upon investigation, I discovered that when mixing two Gaussian noises, the variance of the Gaussian changes.
sqrt( (1 - strength)^2 + strength^2 )
Therefore, after mixing the two, the current algorithm adjusts the scale of the latent value according to the mixing ratio.
And one consideration when applying variation is that, while variation tends to show slight modifications based on the original noise, it can become completely different once a certain threshold is exceeded.
If the noise of the seed is already close to this threshold, even a slight increase in variation strength can cause significant changes in the composition of the image.
Thank you very much for your explanations.
Could we envisage a Ksampler where we choose the type of noise for the variation chosen and ask for a batch size which would include a range of different variations which would remain within a certain framework so as not to have too great a difference or is this not possible?
Thank you so much! I updated Inspire and did some tests. Fantastic! The number of possibilities can be huge.
I don't know why, but this time, compared to the regular sampler, the luminosity is much better, especially for the glass and the bottle. How do you explain this difference?
Some photo have a composition problem format 832 * 1216 with linear
Here is the perfect image
Here is the image with the distortion
With Slerp the glasse diseapeared
I will continue to test and keep you informed
I have some answers
When the stop (en step) in the float range are at their maximum, the luminosity is higher and this can explain the deformation. With low stop (end step) (0.7) the images are perfect. Reducing the stop reduces the number of images generated :-) With a limit of 5 I get 3 images.
You've opened up new possibilities for me, thank you.