sdwebuiapi icon indicating copy to clipboard operation
sdwebuiapi copied to clipboard

If api.txt2img use script, always output only 1 image, no matter what value of batch_size

Open mit10000 opened this issue 1 year ago • 0 comments

If we use script, then the txt2img only generate 1 image, even set batch_size=8 For instance result1 = api.txt2img(prompt="a man on tropical beach", negative_prompt="ugly, out of frame", seed=1003, styles=["anime"], cfg_scale=7, batch_size=8, script_name="Detection Detailer", script_args=[ '',#info ... ],

) check (Pdb) len(result1.images) 1 but it should be 8. If we turn off the script, then (Pdb) len(result1.images) 8

Seems the script causes the problem.

Can anyone help? Thanks.

mit10000 avatar May 10 '23 14:05 mit10000