thundaga / SD-webui-txt2img-script

Stable diffusion webui script to batch process images within the txt2img section
41 stars 5 forks source link

CFG scale issue: int to float #2

Closed add63sugar closed 1 year ago

add63sugar commented 1 year ago

Hi!

Today I try to use some other script, it will generate CFG scale:"7.0" instead of "7" It cause ERROR when running your script, the below line150, I need to change from int to float, now it is running smoothly. But for line 149, seems it should be 'CFG scale' instead of 'Seed'? Not sure it affects the script or not.

line149 if options.cfg_scale and 'Seed' in parsed_text:
line150 p.cfg_scale = int(parsed_text['CFG scale'])

Thanks!!

thundaga commented 1 year ago

Changed the data type conversion, strange I didn't see that, repos been updated for the cfg scale parsing