Merge branch 'new_mode' of https://github.com/AIrjen/OneButtonPrompt into new_mode

pull/172/head
AIrjen 2024-03-22 16:08:38 +01:00
commit 6a6e2ba52a
4 changed files with 1478 additions and 223 deletions

View File

@ -33,6 +33,7 @@ More of a Fooocus fan? Take a look at this excellent fork called [RuinedFooocus]
- Has a set of __template prompts__ from various sources, __fully wildcarded__ and usable with Subject Override ==> [guide to prompt templates](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/templates.md) - Has a set of __template prompts__ from various sources, __fully wildcarded__ and usable with Subject Override ==> [guide to prompt templates](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/templates.md)
- Has multiple __prompt generation modes__ to choose from ==> [guide to prompt generation modes](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/prompt_generation_modes.md) - Has multiple __prompt generation modes__ to choose from ==> [guide to prompt generation modes](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/prompt_generation_modes.md)
- Stay in control, and fine-tune One Button Prompt with a __config__ file ==> [config file](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/config_file.md) - Stay in control, and fine-tune One Button Prompt with a __config__ file ==> [config file](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/config_file.md)
- __Flufferize__ your prompt to enhance your results with Prompt Magic
## Important Notice ## Important Notice

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"last_node_id": 223, "last_node_id": 225,
"last_link_id": 333, "last_link_id": 337,
"nodes": [ "nodes": [
{ {
"id": 160, "id": 160,
@ -29,7 +29,9 @@
} }
], ],
"title": "CFG Scale", "title": "CFG Scale",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
8, 8,
"fixed" "fixed"
@ -102,7 +104,9 @@
} }
], ],
"title": "Total Steps (Base + Ref.)", "title": "Total Steps (Base + Ref.)",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
30, 30,
"fixed" "fixed"
@ -138,9 +142,11 @@
} }
], ],
"title": "Seed", "title": "Seed",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
604260618514801, 890019860370061,
"randomize" "randomize"
], ],
"color": "#432", "color": "#432",
@ -160,7 +166,7 @@
"flags": { "flags": {
"collapsed": false "collapsed": false
}, },
"order": 13, "order": 17,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -171,7 +177,7 @@
{ {
"name": "text_g", "name": "text_g",
"type": "STRING", "type": "STRING",
"link": 325, "link": 336,
"widget": { "widget": {
"name": "text_g" "name": "text_g"
}, },
@ -180,7 +186,7 @@
{ {
"name": "text_l", "name": "text_l",
"type": "STRING", "type": "STRING",
"link": 326, "link": 337,
"widget": { "widget": {
"name": "text_l" "name": "text_l"
}, },
@ -225,7 +231,7 @@
"1": 316.8831481933594 "1": 316.8831481933594
}, },
"flags": {}, "flags": {},
"order": 17, "order": 18,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -300,7 +306,7 @@
}, },
"widgets_values": [ "widgets_values": [
"enable", "enable",
604260618514801, 890019860370061,
"fixed", "fixed",
30, 30,
8, 8,
@ -341,7 +347,9 @@
} }
], ],
"title": "Steps On Base Model", "title": "Steps On Base Model",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
30, 30,
"fixed" "fixed"
@ -361,7 +369,7 @@
26 26
], ],
"flags": {}, "flags": {},
"order": 18, "order": 19,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -397,7 +405,7 @@
"1": 102.28533172607422 "1": 102.28533172607422
}, },
"flags": {}, "flags": {},
"order": 19, "order": 20,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -439,7 +447,7 @@
"1": 596.3757934570312 "1": 596.3757934570312
}, },
"flags": {}, "flags": {},
"order": 20, "order": 21,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -475,13 +483,13 @@
"1": 166 "1": 166
}, },
"flags": {}, "flags": {},
"order": 15, "order": 16,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
"name": "positive_prompt", "name": "positive_prompt",
"type": "STRING", "type": "STRING",
"link": 324, "link": 335,
"widget": { "widget": {
"name": "positive_prompt" "name": "positive_prompt"
} }
@ -517,56 +525,6 @@
"color": "#2a363b", "color": "#2a363b",
"bgcolor": "#3f5159" "bgcolor": "#3f5159"
}, },
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-570,
175
],
"size": {
"0": 320.0830383300781,
"1": 101.19705200195312
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
281
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
283,
284
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
316
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd_xl_base_1.0.safetensors"
],
"color": "#432",
"bgcolor": "#653"
},
{ {
"id": 219, "id": 219,
"type": "PrimitiveNode", "type": "PrimitiveNode",
@ -579,7 +537,7 @@
"1": 58 "1": 58
}, },
"flags": {}, "flags": {},
"order": 6, "order": 5,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
{ {
@ -596,7 +554,9 @@
} }
], ],
"title": "File Location", "title": "File Location",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
"%date:yyyy-M-d%/ComfyUI" "%date:yyyy-M-d%/ComfyUI"
], ],
@ -615,7 +575,7 @@
"1": 210 "1": 210
}, },
"flags": {}, "flags": {},
"order": 7, "order": 6,
"mode": 0, "mode": 0,
"title": "Note - Empty Latent Image", "title": "Note - Empty Latent Image",
"properties": { "properties": {
@ -641,7 +601,7 @@
"flags": { "flags": {
"collapsed": false "collapsed": false
}, },
"order": 16, "order": 15,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -705,7 +665,7 @@
"1": 58 "1": 58
}, },
"flags": {}, "flags": {},
"order": 8, "order": 7,
"mode": 0, "mode": 0,
"properties": { "properties": {
"text": "" "text": ""
@ -730,7 +690,7 @@
"flags": { "flags": {
"collapsed": false "collapsed": false
}, },
"order": 9, "order": 8,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
{ {
@ -746,7 +706,9 @@
} }
], ],
"title": "Overwrite Subject", "title": "Overwrite Subject",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
"" ""
], ],
@ -767,7 +729,7 @@
"flags": { "flags": {
"collapsed": false "collapsed": false
}, },
"order": 10, "order": 9,
"mode": 0, "mode": 0,
"outputs": [ "outputs": [
{ {
@ -783,13 +745,231 @@
} }
], ],
"title": "Overwrite Outfit", "title": "Overwrite Outfit",
"properties": {}, "properties": {
"Run widget replace on values": false
},
"widgets_values": [ "widgets_values": [
"" ""
], ],
"color": "#232", "color": "#232",
"bgcolor": "#353" "bgcolor": "#353"
}, },
{
"id": 16,
"type": "PrimitiveNode",
"pos": [
-1242,
-95
],
"size": {
"0": 434.15277099609375,
"1": 152.36099243164062
},
"flags": {},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
329
],
"slot_index": 0,
"widget": {
"name": "base_negative"
}
}
],
"title": "Negative Prompt",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"text, watermark\n"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 221,
"type": "OneButtonPrompt",
"pos": [
-630,
-548
],
"size": {
"0": 315,
"1": 386
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "custom_subject",
"type": "STRING",
"link": 327,
"widget": {
"name": "custom_subject"
}
},
{
"name": "custom_outfit",
"type": "STRING",
"link": 328,
"widget": {
"name": "custom_outfit"
}
}
],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
333,
334
],
"shape": 3,
"slot_index": 0
},
{
"name": "prompt_g",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "prompt_l",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "OneButtonPrompt"
},
"widgets_values": [
5,
"all",
"all",
20,
"all",
"",
"",
"all",
"all",
"all",
"all",
false,
"SDXL",
1054047122686601,
"randomize"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-570,
175
],
"size": {
"0": 320.0830383300781,
"1": 101.19705200195312
},
"flags": {},
"order": 11,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
281
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
283,
284
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
316
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"dreamshaperXL10_alpha2Xl10.safetensors"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 224,
"type": "OneButtonFlufferize",
"pos": [
-197,
-542
],
"size": {
"0": 325.6371154785156,
"1": 166.23045349121094
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "prompt",
"type": "STRING",
"link": 334,
"widget": {
"name": "prompt"
}
}
],
"outputs": [
{
"name": "fluffed_prompt",
"type": "STRING",
"links": [
335,
336,
337
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OneButtonFlufferize"
},
"widgets_values": [
"",
"dynamic",
false,
921089971232293,
"randomize"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{ {
"id": 223, "id": 223,
"type": "AutoNegativePrompt", "type": "AutoNegativePrompt",
@ -797,12 +977,12 @@
-633, -633,
-113 -113
], ],
"size": [ "size": {
327, "0": 327,
170.40017700195312 "1": 174
], },
"flags": {}, "flags": {},
"order": 14, "order": 13,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -843,126 +1023,12 @@
"text, watermark\n", "text, watermark\n",
0, 0,
0, 0,
0, "SDXL",
209255417752634,
"randomize" "randomize"
], ],
"color": "#322", "color": "#322",
"bgcolor": "#533" "bgcolor": "#533"
},
{
"id": 221,
"type": "OneButtonPrompt",
"pos": [
-630,
-538
],
"size": {
"0": 315,
"1": 370
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "custom_subject",
"type": "STRING",
"link": 327,
"widget": {
"name": "custom_subject"
}
},
{
"name": "custom_outfit",
"type": "STRING",
"link": 328,
"widget": {
"name": "custom_outfit"
}
}
],
"outputs": [
{
"name": "prompt",
"type": "STRING",
"links": [
324,
325,
326,
333
],
"shape": 3,
"slot_index": 0
},
{
"name": "prompt_g",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "prompt_l",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "OneButtonPrompt"
},
"widgets_values": [
5,
"all",
"all",
20,
"all",
"",
"",
"all",
"all",
"all",
"all",
false,
0,
"randomize"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 16,
"type": "PrimitiveNode",
"pos": [
-1242,
-95
],
"size": {
"0": 434.15277099609375,
"1": 152.36099243164062
},
"flags": {},
"order": 11,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
329
],
"slot_index": 0,
"widget": {
"name": "text_g"
}
}
],
"title": "Negative Prompt",
"properties": {},
"widgets_values": [
"text, watermark\n"
],
"color": "#322",
"bgcolor": "#533"
} }
], ],
"links": [ "links": [
@ -1094,30 +1160,6 @@
1, 1,
"STRING" "STRING"
], ],
[
324,
221,
0,
218,
0,
"STRING"
],
[
325,
221,
0,
50,
1,
"STRING"
],
[
326,
221,
0,
50,
2,
"STRING"
],
[ [
327, 327,
215, 215,
@ -1173,6 +1215,38 @@
223, 223,
0, 0,
"STRING" "STRING"
],
[
334,
221,
0,
224,
0,
"STRING"
],
[
335,
224,
0,
218,
0,
"STRING"
],
[
336,
224,
0,
50,
1,
"STRING"
],
[
337,
224,
0,
50,
2,
"STRING"
] ]
], ],
"groups": [], "groups": [],

View File

@ -1,10 +1,11 @@
# ComfyUI integration # ComfyUI integration
One Button Prompt is now also a ComfyUI extension. One Button Prompt is now also a ComfyUI extension.
There are 4 nodes currently availabe, with One Button Prompt node being the main one. There are 7 nodes currently availabe, with One Button Prompt node being the main one.
You can slam it in every workflow, where you replace it with the Positive Prompt node. You can slam it in every workflow, where you replace it with the Positive Prompt node.
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/342bd715-9b7e-4e1a-a3ba-ff3b557b89cc) ![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/271dc575-dfe7-48dc-bef5-222d0af53344)
## Installing in ComfyUI ## Installing in ComfyUI
@ -59,6 +60,30 @@ Has a simple prompt output and a preset selector. You can add new presets by man
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/33392e25-d24e-4cc7-a90f-95722e7e8e06) ![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/33392e25-d24e-4cc7-a90f-95722e7e8e06)
## One Button Artify
One Button Artify works as an artist mixer for your prompt. Like SDXL styles, but for all artists known in Stable Diffusion.
It works best when adding a simple prompt.
It has the following settings to play with:
- Artist --> Selection of the style of artists to choose from.
- amount_of_artists --> Amount of artists to generate. Select random, for a choice between 1 and 3.
- artify_mode --> __standard__ adds tags according to the chosen artist. __remix__ chooses tags from different than the chosen artist. __super remix turbo__ chooses wildly from a long list of tags.
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/22415117-c457-44a3-bc35-d13629681319)
> vibrant art by Chiho Aoshima, Digital Art, cute norwegian forest cat, Superflat art movement, kawaii aesthetics, fantastical and surreal imagery, blending traditional Japanese motifs with contemporary themes, vibrant colors, otherworldly landscapes, sharp focus, dynamic, contemporary, full color, grand illumination
## One Button Flufferize
One Button Prompts lightweight implementation of Fooocus Prompt Magic. It will enhance the output by adding quality tags at the end of your prompt. See the example above.
It is standardly set to __dynamic__. You can turn it off by choosing __none__.
Choose __short__, __medium__ or __long__ for more direct control.
Don't __reverse the polarity!__
## Create Prompt Variant ## Create Prompt Variant
You can use the "Create Prompt Variant" node, to create variants based on a prompt you input. The strength of the variant is set with the "insanity level" slider. Simply connect it between the positive prompt and the CLIP encoder module. You can use the "Create Prompt Variant" node, to create variants based on a prompt you input. The strength of the variant is set with the "insanity level" slider. Simply connect it between the positive prompt and the CLIP encoder module.