Minimal txt2img example#60
Draft
akx wants to merge 4 commits into
Draft
Conversation
Allow configuring with `SGM_DEFAULT_DEVICE`
…kpt, allow device
This was referenced Jul 25, 2023
|
can you please ensure you test a batch size greater than 1 through the base and refiner? |
Contributor
Author
|
@akx the batch size issue is prompt-dependent, eg. the reason so far as I can tell is due to some issue in the stride used for the refiner steps. but i've mostly managed to reproduce the issue, not identify the actual cause or solution other than refining images separately. edit: and the issue is independent of MPS or CUDA being used. |
This was referenced Jul 27, 2023
Draft
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 adds a simple, minimal txt2img command line example tool that also works on Apple Silicon.
By running

env SGM_DEFAULT_DEVICE=mps python txt2img.pyon this branch you'll eventually get a familiar sight inoutputs/:It also adds the minimal set of dependencies I identified to be enough to run the demo (as originally discussed in #17).