Skip to content

Add negative prompts - #109

Merged
jonatanklosko merged 2 commits into
mainfrom
sm-negative-prompts
Dec 14, 2022
Merged

Add negative prompts#109
jonatanklosko merged 2 commits into
mainfrom
sm-negative-prompts

Conversation

@seanmor5

Copy link
Copy Markdown
Contributor

Resolves #105

It looks decent?

negative

Comment on lines +401 to +402
defp get_tokens(prompts) when is_list(prompts),
do: Enum.flat_map(prompts, &get_tokens/1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this clause be removed? I don't think they can be lists based on validate_input?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I was looking at the implementation of validate_serving_inputs in Shared which supports lists as functions

@jonatanklosko

Copy link
Copy Markdown
Member

We are making a patch release, so I'm going to merge this too :)

@jonatanklosko
jonatanklosko merged commit bd1dabd into main Dec 14, 2022
@jonatanklosko
jonatanklosko deleted the sm-negative-prompts branch December 14, 2022 21:35
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.

Support negative prompts in stable diffusion

3 participants