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

Possible to add an API endpoint in stable-diffusion-webui? #4

Open
aliencaocao opened this issue Nov 5, 2022 · 6 comments
Open

Possible to add an API endpoint in stable-diffusion-webui? #4

aliencaocao opened this issue Nov 5, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@aliencaocao
Copy link
Collaborator

Useful for automating prompt conversation.

@animerl animerl self-assigned this Nov 5, 2022
@animerl
Copy link
Owner

animerl commented Nov 5, 2022

It's good idea!
As I don't have much time, please be patient :)

@animerl animerl added the enhancement New feature or request label Nov 5, 2022
@aliencaocao
Copy link
Collaborator Author

aliencaocao commented Nov 5, 2022

I can work on it in early dec, if you wish.
Probably will implement it in Python instead for ease of integration into the existing code for APIs

@animerl
Copy link
Owner

animerl commented Nov 5, 2022

I can't speak too strongly about this code, as I only modified the code that anonymous wrote, but it is quite flawed.
(To be honest, I don't really know how to implement the core part, regarding the string handling...)
For now, the first priority should be to get the algorithm in place and rewrite it in Python.

@aliencaocao
Copy link
Collaborator Author

aliencaocao commented Nov 5, 2022

Have you or anyone else tested it to reproduce results on novelAI and the webui, especially the bracket part? I don't have a paid novelAI subscription so I cannot test myself.

@animerl
Copy link
Owner

animerl commented Nov 5, 2022

Have you or anyone else tested it to reproduce results on novelAI and the webui, especially the bracket part? I don't have a paid novelAI subscription so I cannot test myself.

I have not signed up, but it has been verified by an anonymous user and we know what the conditions are. If necessary, it can be further validated with a combination of existing NovelAI products and prompts.
You can check webUI's wiki here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#attentionemphasis

  • their {word} = our (word:1.05)
  • their {{word}} = our (word:1.1025)
  • their [word] = our (word:0.952) (0.952 = 1/1.05)
  • their [[word]] = our (word:0.907) (0.907 = 1/1.05/1.05)

@aliencaocao
Copy link
Collaborator Author

Just dropping this here for future reference when I start working on this:
AUTOMATIC1111/stable-diffusion-webui#3982

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

No branches or pull requests

2 participants