AI Painting Stable Diffusion Research (6) sd prompt word plug-in


Hello everyone, I am rain or shine.

Today, I recommend a plug-in that can effectively improve the efficiency of our use of Stable Diffusion WebUI. It is prompt-all-in-one. It can not only directly convert Chinese prompts in WebUI into English, but also convert them into keywords with one click. Adding weights can build a common prompt vocabulary, which is very practical for friends who are not proficient in English.

Today's content is divided into two parts. One is the introduction of the prompt-all-in-one plug-in. What are the specific functions and how should it be used? The second is how to install this plugin.


First, let's take a look at the introduction of prompt-all-in-one.


1. Introduction of prompt-all-in-one


The main functions of the prompt-all-in-one plug-in include automatic conversion to English, one-click conversion to English, quick modification of weight, collection of commonly used prompt words, etc.


1. Automatically switch to English


We can automatically convert Chinese prompt words to English through a plug-in.

For example: enter keywords in the prompt box of the plug-in, press Enter to send, and the corresponding English prompt will be automatically generated in the prompt words.

insert image description here


insert image description here


2. Adjust the prompt word position and weight

After using the prompt-all-in-one plug-in to input prompt words, the plug-in will re-arrange all prompt words in the form of tags. We can perform the following operations on the tags:

  • Drag the labels directly with the mouse to change the order

  • Modify the weight of prompt words to save the trouble of manual setting

  • Modify the prompt word or weight directly in the label


insert image description here


3. View historical prompt words and favorite prompt words

Click the small icon of "History" to view the prompt words we have used, and also perform operations such as favorite, copy, and use.


insert image description here


insert image description here


After the prompt words are saved, they can be viewed in the "Favorites List". Click "Use" to directly fill in the prompt words into the text box, so that we can quickly call commonly used prompt words, which is very convenient.


insert image description here


2. Installation and setting of prompt-all-in-one plug-in


1. Installation method


Stable Diffusion plugin prompt-all-in-one address:

https://github.com/Physton/sd-webui-prompt-all-in-one.git

This plugin needs to be installed in WebUI.


The first step is to open the WebUI and click the "Extension" tab on the function bar

In the second step, select "Install from URL", copy and paste the address of the plugin into the input box of the extended git warehouse URL

The third step is to click the "Install" button and wait for the installation to complete.

When the following prompt appears below, the installation is successful:


Installed into stable-diffusion-webui\extensions\sd-webui-controlnet. Use Installed tab to restart

The installation steps are as shown in the figure:

insert image description here


insert image description here


2. Plug-in update method


(1) Click on the "Installed" tab on the left


insert image description here


(2) Click the "Check for Update" button and wait for the detection and update to complete


insert image description here


(3), click "Apply and restart UI"

(4), key console window, webui window

(5), restart and enter the webui, we can see the prompt-all-in-one plug-in


The interface after successful installation is as follows:

insert image description here


3. Settings after installation


After the prompt-all-in-one plug-in is successfully installed, for more convenient use, you can set the following settings, of course, you can not set them, and use the default ones directly.


(1), set the language type


Click the small icon "Earth" and set the language type to "Simplified Chinese", so that when we input Simplified Chinese, the plug-in will automatically change it to English.


insert image description here


2. Set translation api


After the mouse pointer moves to the small icon of "Settings", the small icon of "api settings" will appear, as shown in the figure:


insert image description here


insert image description here


After clicking the small icon of "api settings", the pop-up window can be used to set the translation interface.


The plug-in provides many free APIs: including Baidu, Youdao, Ali, Google and other translations. We can choose one with the [Free] logo according to our own preferences.


After selecting, remember to click the "Test" button to check whether the selected interface can be used normally.

If possible, the text translation result will be displayed; if not, another free translation interface will be used.


insert image description here


As follows, click Test, if it fails to access, you can change another interface.

insert image description here


After the test is successful, click Save.


insert image description here


(3), enable automatic translation


After the mouse pointer moves to the small icon of "Settings", a check box of "Automatically translate after entering new key words" will appear, just check it directly.

Forward prompts and reverse prompts need to be set separately.

as the picture shows:

insert image description here


insert image description here


(4), use chatgpt to generate prompt


If you don't have friends with chatgpt account, this setting can be ignored.


The first step is to use a browser to log in to the chatgpt account

The second step is to open the view api keys page of the account information


insert image description here


The third step is to create a secret key

insert image description here


The fourth step, copy the api key for backup


insert image description here


Step 5, click the web ui "chatgpt" small icon


![Insert picture description here](https://img-blog.csdnimg.cn/56b26b25c407455c97b9a3b91efec091.png#pic_center)

The sixth step, set chatgpt api key

Paste the copied chatgpt api into the api key input box, and click save.


insert image description here

The seventh step is to select the chatgpt model to save, and then perform the generation test.

insert image description here

The above is the Stable Diffusion WebUI plug-in Prompt-all-in-one recommended for everyone in this issue. If you think it is troublesome to write English prompt words, then you must try this plug-in.

Guess you like

Origin blog.csdn.net/lizhong2008/article/details/132152349