n00mkrad / text2image-gui

Somewhat modular text2image GUI, initially just for Stable Diffusion
GNU General Public License v3.0
921 stars 93 forks source link

Initialization image strength set incorrectly when using settings from metadata if value doesn't match slider increment #83

Open Shadetail opened 1 year ago

Shadetail commented 1 year ago

I had trouble recreating an image exactly by using the "Use Settings From Metadata" feature. I finally figured out the reason was that metadata said:

Init Strength: 0.43

But the slider was being automatically set to 0.45 instead, which was different enough that it produced a different result. In such a case, correct number (in this case 0.43) should be automatically entered into "Custom strength value" field instead, so that the original generation can be recreated. Alternatively a warning should pop-up.