stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Multilingual prompts

Open sylence175 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Would it be possible to integrate a multilingual pipeline ? Then even users who do not speak english could generate images with stable diffusion.

I have seen an example from diffusers. I could implement the pipeline myself, but I'm not sure if I need to include it as a custom script or develop an extension for it.

Proposed workflow

  1. Add an option in the settings to activate multilingual prompts
  2. If the option is activated, the MBart50 tokenizer and model is used in the diffuser pipeline.

Additional information

https://twitter.com/juancopi81/status/1590366617044910080 https://huggingface.co/spaces/juancopi81/multilingual-stable-diffusion https://github.com/huggingface/diffusers/tree/main/examples/community#multilingual-stable-diffusion-pipeline

sylence175 avatar Nov 10 '22 19:11 sylence175

@sylence175 that would be an awesome addition!

ClashSAN avatar Nov 11 '22 06:11 ClashSAN