71 lines
2.9 KiB
Markdown
71 lines
2.9 KiB
Markdown
# ComfyUI integration
|
|
One Button Prompt is now also a ComfyUI extension.
|
|
|
|
There are 3 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.
|
|
|
|

|
|
|
|
|
|
## Installing in ComfyUI
|
|
|
|
Navigate to your ComfyUI\custom_nodes\ directory, and run the following command:
|
|
```
|
|
git clone https://github.com/AIrjen/OneButtonPrompt
|
|
```
|
|
|
|
This should create a OneButtonPrompt directory in the ComfyUI\custom_nodes\ folder.
|
|
|
|
It could like something like this
|
|
|
|

|
|
|
|
After that, restart ComfyUI, and you are ready to go.
|
|
|
|
It should be available in ComfyUI manager soonish as well.
|
|
|
|
## Custom nodes
|
|
|
|
### One Button Prompt
|
|
|
|
All settings work similar to the settings in the Automatic1111 documentation.
|
|
|
|
It will generate a prompt from scratch, or based on several of your inputs and settings.
|
|
|
|

|
|
|
|
Please refer to the other documentation to see what each setting does.
|
|
|
|
### 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.
|
|
|
|
It will automatically create a small variance in the prompt, based on magic. It might not work for every prompt.
|
|
|
|

|
|
|
|
Here is an example of ComfyUI standard prompt "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"
|
|
|
|
These are all generated with the same model, same settings, same seed. But some of these have the Create Prompt Variant node included.
|
|
|
|

|
|
|
|
Here is an example of the entire example workflow.
|
|
|
|

|
|
|
|
### Save Prompt To File
|
|
|
|
Use the Save Prompt To File node to actually save the prompt in a text file. Since ComfyUI stores the entire flow in the image, it doesn't store the actual generated prompt.
|
|
|
|
You can also use other extension for this. But I thought it was nice to include a save options nativly. There are other options out there as well.
|
|
|
|
Just simply also connect the output of One Button Prompt to the Postive Prompt node.
|
|
|
|

|
|
|
|
|
|
### Known issues
|
|
|
|
1. There is a SEED option in the One Button Prompt node, this is a hacky thing. It is just there to make sure it is refired each time you generate an image.
|
|
|