SDPromptTrans
SD Prompt Chinese to English plugin download,prompt-all-in-one,Stable Diffusion WebUI extension
Official download page for the SD Prompt Chinese to English plugin, prompt-all-in-one, Stable Diffusion WebUI Extension
Introduction to prompt-all-in-one
prompt-all-in-one is an SD WebUI extension that translates Chinese prompts to English and automatically adjusts weights for Stable Diffusion WebUI! This extension, Prompt-all-in-one, can directly convert Chinese prompts in the WebUI to English and add weights to keywords with one click, as well as build a library of frequently used prompts. After installation, it can effectively improve our efficiency when using the WebUI, and is very friendly for those who are not proficient in English.
Official website of prompt-all-in-one plugin:
https://github.com/Physton/sd-webui-prompt-all-in-one
This plugin is more useful than the prompt completion plugin. It supports direct Chinese input for translation to English. It can also enhance weights, greatly improving efficiency. However, this plugin conflicts with the prompt completion plugin, and it can be unchecked in the loader. Additionally, the webui must be updated to version 22bc7b or above to use it.
The main features of the Prompt-all-in-one plugin include automatic Chinese to English translation, one-click translation, quick weight adjustment, and favorite frequently used prompts.
① Automatic Chinese to English Translation
We can use the plugin to automatically convert Chinese prompts to English. For example, input keywords one by one in the plugin's prompt box, press Enter to send, and the prompts in the prompt box will be converted to the corresponding English.
Or input all Chinese keywords first, then click the "Translate all non-English keywords to English" button (En small icon) to change all Chinese to English with one click.
Or input all Chinese keywords first, then click the "Translate all non-English keywords to English" button (En small icon) to change all Chinese to English with one click.
② Adjust Prompt Position and Weight
After inputting prompts using the prompt-all-in-one plugin, the plugin will rearrange all prompts with tags, and we can perform the following operations on the tags:
- Drag tags with the mouse to change the order
- Modify prompt weights, saving the trouble of manual settings
- Directly modify prompts or weights within the tags, both in Chinese and English. If Chinese is entered, click the En small icon to convert it to English.
③ View/Favorite Prompts
Click the "History Record" small icon to view prompts used and perform operations such as favorites, copy, and use. After prompts are favorited, they can be viewed in the "Favorite List". Click "Use" to directly fill the prompts into the text box, allowing us to quickly call up frequently used prompts, which is very convenient.
Open WebUI, click the "Extensions" tab, select "Install from URL", copy ( https://github.com/Physton/sd-webui-prompt-all-in-one.git ), paste it in the first line "URL of the git repository for extensions", and click the "Install" button. After a few seconds, a line of small text "Installed into stable-diffusion-webui\extensions\sd-webui-controlnet. Use Installed tab to restart" will appear below, indicating that the installation was successful.
Click the "Installed" tab on the left, click "Check for Updates", wait for the progress bar to complete; then click "Apply and Restart UI"; finally, completely close the WebUI program and restart (or restart the computer). We can then see the Prompt-all-in-one option in the WebUI main interface.
WebUI interface after installation
After installation, we still need to make three simple settings.
① Set Language Type
This is very simple, just click the Earth small icon and set the language type to "Simplified Chinese". This way, when we input simplified Chinese, the plugin will automatically convert it to English.
② Set Translation API
Click the settings small icon, select the first API icon, and then set the translation interface in the pop-up window. The plugin provides a lot of free APIs, including Baidu, Youdao, and Caiyun Translation, among others. Just choose one with the [Free] mark. After selecting, remember to click the "Test" button below to check if the selected interface can be used normally. If it can, the text translation result will be displayed; if not, choose another free translation interface. After the test is successful, click Save.
③ Enable One-Click Translation
Click the settings small icon, as shown in the figure below, check the box, and set both positive and negative prompts in the same way. At this point, the plugin is installed, and you can operate according to the previous feature introduction.