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

This commit is contained in:
AIrjen
2023-07-30 20:29:37 +02:00
2 changed files with 42 additions and 0 deletions
+2
View File
@@ -14,6 +14,8 @@ It is best used on all-purpose models, such as Stable Difussion 1.5 or those bas
A simple user guide for first time use and settings is available [here](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/my_first_generation.md).
It is also now available as a custom node for ComfyUI, with some limitations. [Check installation doc here](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/comfyui_integration.md)
# Features
- __Full prompt generation__ with the click of a button. ==> [guide to my first generation](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/my_first_generation.md)
- Supports __TXT2IMG, IMG2IMG, ControlNET, inpainting and latent couple__. ==> [guide to IMG2IMG and ControlNET](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/the_next_generation_img2img_and_controlnet.md)
+40
View File
@@ -0,0 +1,40 @@
# ComfyUI integration
In this codebase there is a custom node, that can be used in ComfyUI.
Work is still in progress for all features to work flawlessly in ComfyUI, but a start has been made.
You can slam it in every workflow, where you replace it with the Positive Prompt node.
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/a9c6b449-772b-495c-b39d-eda0be38a203)
## Installing in ComfyUI
Navigate to your ComfyUI directory, and run the following command:
```
git clone https://github.com/AIrjen/OneButtonPrompt
```
This should create a OneButtonPrompt directory in the ComfyUI folder.
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/5d9cfdd3-8342-4aff-a9a4-ecbbc7151856)
From this folder, manually copy the file
```
OneButtonPrompt-node.py
```
Into the ComfyUI\custom_nodes\ folder.
That should look like this:
![image](https://github.com/AIrjen/OneButtonPrompt/assets/130234949/f2c9630e-790b-4a34-b46f-54dbb18b87d5)
After that, restart ComfyUI, and you are ready to go.
### Known issues
1. ComfyUI does NOT store the prompt in the image, but the workflow. Since the prompt is not in the workflow, it is not saved. I am unsure wether there is a custom node for this.
2. 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.
3. Prompts are styled for Automatic1111, so it uses prompt switching, which is not supported by ComfyUI.
4. Easy installer not yet available.
Issues will be investigated over time.