hafriedlander / stable-diffusion-grpcserver

An implementation of a server for the Stability AI Stable Diffusion API
Apache License 2.0
172 stars 23 forks source link

Upgrade tokenizer / text embeddings to support advanced operators #6

Closed parlance-zz closed 1 year ago

parlance-zz commented 2 years ago

There are other implementations out there that support (non-standard) symbols that can be used to manipulate the tokenizer.

Instead of having a separate string for negative prompt for instance, it instead just be special syntax in your regular prompt: prompt="this )))not this(((" or something like that. Likewise you could do "(((my thing with extra weight)))".

Not a high priority by any means but I've seen folks asking for it. I may get to it myself eventually.