Open
Conversation
Author
|
I think that #13 would implement this entirely, feel free to close this if that one is merged. |
WSINTRA
reviewed
Nov 11, 2022
| Image.fromarray(img[0]).save(args.output) | ||
| print(f"saved at {args.output}") | ||
|
|
||
| if(args.batch <= 1): |
There was a problem hiding this comment.
Would it not be simpler...
for i in enumerate(img):
Image.fromarray(img[i]).save("{}_{}".format(i,args.output))
print("Saved at {}_{}".format(i, args.output))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR allows passing the
--batchparameter on the command line so that more than one image can be generated at once. By default, this is set to1to replicate existing functionality when this parameter is not provided.When using batched generation, output is updated to indicate each file that is generated:
I am very open to updated the design of the output if you think that something else would work better.