AIrjen / OneButtonPrompt

One Button Prompt
GNU General Public License v3.0
875 stars 87 forks source link

Add "Send to Negative Prompt" capabilities #151

Closed Alyndiar closed 1 year ago

Alyndiar commented 1 year ago

Could you add a negative prompt input and the ability to modify the negative prompt based on the random elements added to the positive prompt, especially in the case of Dynamic Prompts syntax.

I like the method proposed here : Sent to Negative

So anything within <! !> is removed from the positive prompt and added to the negative prompt. This allows you to add things like:

I'd do it myself if my coding experience was good enough 😭

Alyndiar commented 1 year ago

Also good for putting camera on the negative prompt when describing photo equipement so SD does not actually draw the camera...

AIrjen commented 1 year ago

Hi! I tried the extension you mentions, and it works well with One Button Prompt. If you want to use it, you can just add the <! !> syntax in the files.

here is how to do it, without breaking things on the next release: https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/custom_files.md#adding-on-to-or-replacing-one-button-prompt-main-lists

So you can install the mentioned extension, and then created replaced lists with the new syntax in.

I might consider looking at generating a negative prompt at some point, it is mostly the biggest unexplored space right now. But so far, have felt no direct need to do so.

Alyndiar commented 1 year ago

Is there a way to use it in ComfyUI? That's about the last thing preventing me to switch to Comfy once and for all. That's why I was wondering about adding negative prompt to your extension. Also, I'm not talking about you generating a negative prompt. Just accepting a negative prompt to your module and moving the negative parts to the negative prompt. I can do all that no problem in A1111. I'm just looking for a way to do it in Comfy UI.

Le jeu. 23 nov. 2023, à 12 h 46, AIrjen @.***> a écrit :

Hi! I tried the extension you mentions, and it works well with One Button Prompt. If you want to use it, you can just add the <! !> syntax in the files.

here is how to do it, without breaking things on the next release:

https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/custom_files.md#adding-on-to-or-replacing-one-button-prompt-main-lists

So you can install the mentioned extension, and then created replaced lists with the new syntax in.

I might consider looking at generating a negative prompt at some point, it is mostly the biggest unexplored space right now. But so far, have felt no direct need to do so.

— Reply to this email directly, view it on GitHub https://github.com/AIrjen/OneButtonPrompt/issues/151#issuecomment-1824774168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKZH7QTVFLWAKOPCO75U2DYF6DX3AVCNFSM6AAAAAA7VTQD7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUG43TIMJWHA . You are receiving this because you authored the thread.Message ID: @.***>

AIrjen commented 1 year ago

Hi, have you tried contacting the original creator, to see if he wants to create a ComfyUI node out of this?

Alyndiar commented 1 year ago

image

He's not interrested, but he also doesnt mind someone else doing it

AIrjen commented 11 months ago

Hello! I just pushed new logic for negative prompts in One Button Prompt:

https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/auto_negative_prompt.md

It comes with a new "Auto Negative Prompt" node in ComfyUI as well.

It is not directly what you asked for, but you can configure it to work on the words you want. You can create a _addon file in the \userfiles\ folder. There is a sample included.