Stability-AI / rest-api-support

Stability REST API examples, issues, and discussions | https://api.stability.ai
107 stars 21 forks source link

Rejected words should be accepted in negative prompts #2

Open juliendorra opened 1 year ago

juliendorra commented 1 year ago

Using negative prompts, I stumble unto a paradox: if you try to use a negative prompt to avoid NSFW like for example:

text_prompts: [ { text: "illustration", weight: 1.0 }, { text: "naked nude", weight: -1.0 }

the prompts are rejected by the API!

I tested and this is indeed the same behavior that in the studio, but… it doesn’t make sense!

Rejected prompts should be accepted as negative, shouldn’t they? That would help avoiding the filtered/blurred results, for example.

todd-elvers commented 1 year ago

This is a known issue downstream and we're currently working on a fix to resolve it. I agree it is a strange paradox.