update readme

This commit is contained in:
billwuhao
2025-02-17 04:02:09 +08:00
parent 3d8508f19f
commit b54cfd4995
2 changed files with 91 additions and 84 deletions
+86
View File
@@ -0,0 +1,86 @@
[中文](README.md) | [English](README-en.md)
![One Button Prompt for Flux in ComfyUI](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/example.png)
---
# One Button Prompt for Flux in ComfyUI
## Summary
This is a node for generating Flux prompts with one click in ComfyUI.
## 📣 Updates
[2025-01-21]⚒️:
- `txt` file support `//` comments: The line for comments will be ignored.
- Add more prompts (human and poses):
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-47-23.png)
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-49-40.png)
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-58-00.png)
[2025-01-10]⚒️:
- human_pose → pose: Any subject can set pose. Please promptly change the file name `human_pose` to `pose`.
- Add 4 `add_` files to record the good prompt words I have found. You can also share your prompt words and submit an PR.
- Add `None` to `subject` to make it optional, so that custom subject can be fixed in `lora_trigger_or_prefix` to generate images under the same subject and win prizes.
- To add a testing mode, please put the prompts you need to test into the file `test.txt`(The first time you need to create a new one), and then turn on the testing mode to test each prompt in sequence. **Note**: During testing mode, all options except for the custom `lora_trigger_or_prefix` are invalid. f you are running the test automatically, after all prompts are completed, switch to a random generated image.
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-10_12-07-54.png)
## Usage
- **If "human" is selected**, it will generate only the human-related prompt.
- **If "other" is selected**, it will generate only the other-related prompt.
- **If "dual_subject" is selected**, it will include both of the above.
- **If "pose" is enabled**, it will generate a subject pose prompt.
- **If "style" is enabled**, it will generate a style prompt.
- **lora_trigger_or_prefix** are optional and can be customized.
- If you have modified the custom file during the generation images, please enable **refresh** to update it, without having to restart the software
- **If the seed is fixed**, it will generate the same fixed prompt.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image-1.png)
**Example Prompt**:
(MW:1.2), a beautiful girl, fall asleep, A beautiful lovely alpaca, naive art
- `(MW:1.2)` is the **Lora trigger word**.
- `a beautiful girl` is the **human**.
- `fall asleep` is the **pose**.
- `A beautiful lovely alpaca` is the **other**.
- `naive art` is the **style**.
## Custom Subjects, Poses, and Styles
1. Create four files under the folder `ComfyUI\custom_nodes\ComfyUI_OneButtonPrompt_Flux\txtfiles`.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image.png)
2. Input the corresponding content into each file to generate your custom subject, pose, and style.
3. The `prompt_words.xlsx` file contains prompts I gathered a long time ago when experimenting with **Disco Diffusion** and **SD 1.5**. You can refer to it for ideas.
**Note**: Be sure to create new files and modify them freely; this will not affect the node's functionality or future updates.
## Automatic Image Generation
If you want to automatically generate images while your computer is running, select `Queue (On Change)` and click Start. Workflow in `workflow_example`.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image-2.png)
## Using with Prompt Enhancer
The enhancer of prompt has a poor effect in some cases, completely destroying the style and artistic conception of the prompt. It is recommended to enable it during the lottery
ComfyUI-Fluxpromptenhancer: https://github.com/marduk191/ComfyUI-Fluxpromptenhancer
## Thank you
Thank you to the amazing [OneButtonPrompt](https://github.com/AIrjen/OneButtonPrompt) for inspiration.
+5 -84
View File
@@ -1,89 +1,10 @@
[中文](README.md) | [English](README-en.md)
![One Button Prompt for Flux in ComfyUI](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/example.png)
---
# One Button Prompt for Flux in ComfyUI
## Summary
This is a node for generating Flux prompts with one click in ComfyUI.
## 📣 Updates
[2025-01-21]⚒️:
- `txt` file support `//` comments: The line for comments will be ignored.
- Add more prompts (human and poses):
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-47-23.png)
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-49-40.png)
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-25_22-58-00.png)
[2025-01-10]⚒️:
- human_pose → pose: Any subject can set pose. Please promptly change the file name `human_pose` to `pose`.
- Add 4 `add_` files to record the good prompt words I have found. You can also share your prompt words and submit an PR.
- Add `None` to `subject` to make it optional, so that custom subject can be fixed in `lora_trigger_or_prefix` to generate images under the same subject and win prizes.
- To add a testing mode, please put the prompts you need to test into the file `test.txt`(The first time you need to create a new one), and then turn on the testing mode to test each prompt in sequence. **Note**: During testing mode, all options except for the custom `lora_trigger_or_prefix` are invalid. f you are running the test automatically, after all prompts are completed, switch to a random generated image.
![](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/2025-01-10_12-07-54.png)
## Usage
- **If "human" is selected**, it will generate only the human-related prompt.
- **If "other" is selected**, it will generate only the other-related prompt.
- **If "dual_subject" is selected**, it will include both of the above.
- **If "pose" is enabled**, it will generate a subject pose prompt.
- **If "style" is enabled**, it will generate a style prompt.
- **lora_trigger_or_prefix** are optional and can be customized.
- If you have modified the custom file during the generation images, please enable **refresh** to update it, without having to restart the software
- **If the seed is fixed**, it will generate the same fixed prompt.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image-1.png)
**Example Prompt**:
(MW:1.2), a beautiful girl, fall asleep, A beautiful lovely alpaca, naive art
- `(MW:1.2)` is the **Lora trigger word**.
- `a beautiful girl` is the **human**.
- `fall asleep` is the **pose**.
- `A beautiful lovely alpaca` is the **other**.
- `naive art` is the **style**.
## Custom Subjects, Poses, and Styles
1. Create four files under the folder `ComfyUI\custom_nodes\ComfyUI_OneButtonPrompt_Flux\txtfiles`.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image.png)
2. Input the corresponding content into each file to generate your custom subject, pose, and style.
3. The `prompt_words.xlsx` file contains prompts I gathered a long time ago when experimenting with **Disco Diffusion** and **SD 1.5**. You can refer to it for ideas.
**Note**: Be sure to create new files and modify them freely; this will not affect the node's functionality or future updates.
## Automatic Image Generation
If you want to automatically generate images while your computer is running, select `Queue (On Change)` and click Start. Workflow in `workflow_example`.
![alt text](https://github.com/billwuhao/ComfyUI_OneButtonPrompt_Flux/blob/master/images/image-2.png)
## Using with Prompt Enhancer
The enhancer of prompt has a poor effect in some cases, completely destroying the style and artistic conception of the prompt. It is recommended to enable it during the lottery
ComfyUI-Fluxpromptenhancer: https://github.com/marduk191/ComfyUI-Fluxpromptenhancer
---
## 概述
这是一个在 comfyui 中一键生成 flux 提示的节点.
## 一个在 comfyui 中一键生成 flux 提示的节点.
## 📣 更新
@@ -155,6 +76,6 @@ ComfyUI-Fluxpromptenhancer: https://github.com/marduk191/ComfyUI-Fluxpromptenhan
ComfyUI-Fluxpromptenhancer: https://github.com/marduk191/ComfyUI-Fluxpromptenhancer
# Thank you
## 感谢
Thank you to the amazing [OneButtonPrompt](https://github.com/AIrjen/OneButtonPrompt) for inspiration.
[OneButtonPrompt](https://github.com/AIrjen/OneButtonPrompt)