Skip to content

donlinglok1/stable-diffusion-webui-realtime-prompt-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Prompt Translate for sd-webui

This script is made to be used with the AUTOMATIC1111 webui.

Installation

  1. Drop the realtime_translate.py into stable-diffusion-webui/scripts folder.
  2. Drop the realtime_translate.js into stable-diffusion-webui/javascript folder.
  3. Restart the sd-webui, the translating panel will show at the bottom.

image

If you're using a Google Colab, you can add this in a code block before the one that starts the webui :

!wget https://raw.githubusercontent.com/donlinglok/realtime-prompt-translate-for-sd-webui/main/realtime_translate.py -O /content/stable-diffusion-webui/scripts/realtime_translate.py
!wget https://raw.githubusercontent.com/donlinglok/realtime-prompt-translate-for-sd-webui/main/realtime_translate.js -O /content/stable-diffusion-webui/javascript/realtime_translate.js

Features

Translate

  1. Click the Translate button and wait for the loading
  2. After loading, input your prompt, and the translated text will show at the top of the sd-webui.

image

Reversed Translate

  1. Click the Reversed Translate button and wait for the loading.
  2. After loading finish, input your prompt on the top of the sd-webui, your prompt will reverse translate to the English prompt box.

image

Example

Translate

(651KB GIFs)

ezgif-1-fe2a5dd0f1

Reversed Translate

(823KB GIFs)

ezgif-5-2ffddd21eb

Refrences

AUTOMATIC1111/stable-diffusion-webui#3134

https://stackoverflow.com/questions/17654458/how-to-make-an-reset-button-for-google-translate

https://github.com/Extraltodeus/advanced-loopback-for-sd-webui/blob/main/README.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published