sdwebuiapi
sdwebuiapi copied to clipboard
If api.txt2img use script, always output only 1 image, no matter what value of batch_size
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.