From ef9dda2710653eb33ed8f944c39db68330ba98a6 Mon Sep 17 00:00:00 2001 From: AIrjen <130234949+AIrjen@users.noreply.github.com> Date: Sun, 30 Jul 2023 20:24:02 +0200 Subject: [PATCH 1/2] Create comfyui_integration.md --- user_guides/comfyui_integration.md | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 user_guides/comfyui_integration.md diff --git a/user_guides/comfyui_integration.md b/user_guides/comfyui_integration.md new file mode 100644 index 0000000..60eb89a --- /dev/null +++ b/user_guides/comfyui_integration.md @@ -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. From f3525bb6cd7558b3edb316e87953069b68e60739 Mon Sep 17 00:00:00 2001 From: AIrjen <130234949+AIrjen@users.noreply.github.com> Date: Sun, 30 Jul 2023 20:25:36 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 88f2a32..713f7ec 100644 --- a/README.md +++ b/README.md @@ -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)