Skip to content

add --batch parameter #1

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

Closed
wants to merge 4 commits into from
Closed

Conversation

SivanMehta
Copy link
Owner

@SivanMehta SivanMehta commented Sep 21, 2022

Allows passing the --batch parameter on the command line so that more than one image can be generated at once. By default, this is set to 1 to replicate existing functionality.

When using batched generation, output is updated to indicate each file that is generated:

python text2image.py --prompt="nothing" --output="test.png" --batch=4

# generator output

saved at test-1.png
saved at test-2.png
saved at test-3.png
saved at test-4.png

@SivanMehta
Copy link
Owner Author

Copied here: divamgupta#29

@SivanMehta SivanMehta closed this Sep 21, 2022
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

Successfully merging this pull request may close these issues.

1 participant