Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mit10000 opened this issue May 10, 2023 · 0 comments

Comments

@mit10000
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant