AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.4k stars 26.72k forks source link

[Bug]: x/y/z polt styles Select the style name of the Chinese name, and the logo of the generated image is garbled #12395

Closed djt-dev closed 1 year ago

djt-dev commented 1 year ago

Is there an existing issue for this?

What happened?

If the style name is set to Chinese, the generated picture style name is garbled chinese

Steps to reproduce the problem

  1. Add a style file and change the style name in the file to Chinese name,this file UTF-8 image
  2. ./webui.sh
  3. X/YZ polt Select the styles with Chinese name,then click generate image

What should have happened?

Chinese should be displayed normally

Version or Commit where the problem happens

v1.5.1 Commit hash: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/68f336bd994bed5442ad95bad6b6ad5564a5409a

What Python version are you running on ?

Python 3.11.x (above, no supported yet)

What platforms do you use to access the UI ?

Linux

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

export COMMANDLINE_ARGS="--xformers --no-half-vae"

List of extensions

Styles-Editor https://github.com/chrisgoringe/Styles-Editor.git main bb0b51b6 Tue Aug 1 22:12:09 2023 unknown
a1111-sd-webui-tagcomplete https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git main e1598378 Mon Aug 7 07:24:38 2023 unknown
sd-webui-infinite-image-browsing https://github.com/zanllp/sd-webui-infinite-image-browsing.git main f1321047 Thu Jul 27 13:00:31 2023 unknown
sd-webui-prompt-all-in-one https://github.com/Physton/sd-webui-prompt-all-in-one.git main 700306cb Fri Aug 4 06:37:27 2023 unknown
stable-diffusion-webui-localization-zh_CN https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN main 582ca24d Thu Mar 30 07:06:14 2023 unknown
LDSR built-in None   Mon Aug 7 23:27:59 2023  
Lora built-in None   Mon Aug 7 23:27:59 2023  
ScuNET built-in None   Mon Aug 7 23:27:59 2023  
SwinIR built-in None   Mon Aug 7 23:27:59 2023  
canvas-zoom-and-pan built-in None   Mon Aug 7 23:27:59 2023  
extra-options-section built-in None   Mon Aug 7 23:27:59 2023  
mobile built-in None   Mon Aug 7 23:27:59 2023  

prompt-bracket-checker

Styles-Editor https://github.com/chrisgoringe/Styles-Editor.git main bb0b51b6 Tue Aug 1 22:12:09 2023 unknown a1111-sd-webui-tagcomplete https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git main e1598378 Mon Aug 7 07:24:38 2023 unknown sd-webui-infinite-image-browsing https://github.com/zanllp/sd-webui-infinite-image-browsing.git main f1321047 Thu Jul 27 13:00:31 2023 unknown sd-webui-prompt-all-in-one https://github.com/Physton/sd-webui-prompt-all-in-one.git main 700306cb Fri Aug 4 06:37:27 2023 unknown stable-diffusion-webui-localization-zh_CN https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN main 582ca24d Thu Mar 30 07:06:14 2023 unknown LDSR built-in None Mon Aug 7 23:27:59 2023 Lora built-in None Mon Aug 7 23:27:59 2023 ScuNET built-in None Mon Aug 7 23:27:59 2023 SwinIR built-in None Mon Aug 7 23:27:59 2023 canvas-zoom-and-pan built-in None Mon Aug 7 23:27:59 2023 extra-options-section built-in None Mon Aug 7 23:27:59 2023 mobile built-in None Mon Aug 7 23:27:59 2023 prompt-bracket-checker

Console logs

Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on djt user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.11.3 (main, Jun  5 2023, 09:32:32) [GCC 13.1.1 20230429]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a

Launching Web UI with arguments: --xformers --no-half-vae
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [31e35c80fc] from /home/djt/Workspace/AI/stable-diffusion-webui/models/Stable-diffusion/SDXL/sd_xl_base_1.0.safetensors
Creating model from config: /home/djt/Workspace/AI/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 7.2s (launcher: 1.1s, import torch: 1.6s, import gradio: 0.5s, setup paths: 0.6s, other imports: 0.3s, setup codeformer: 0.2s, load scripts: 0.3s, create ui: 0.3s, gradio launch: 2.2s).
Loading VAE weights specified in settings: /home/djt/Workspace/AI/stable-diffusion-webui/models/VAE/sdxl_vae.safetensors
Applying attention optimization: xformers... done.
Model loaded in 8.7s (load weights from disk: 0.9s, create model: 0.4s, apply weights to model: 3.5s, apply half(): 2.1s, load VAE: 0.2s, move model to device: 1.3s, calculate empty prompt: 0.3s).
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.08it/s]
Total progress: 100%|█████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  6.19it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.25it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.26it/s]
Total progress: 100%|█████████████████████████████████████████████████████████████████████| 40/40 [00:07<00:00,  5.58it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.22it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.32it/s]
Total progress: 100%|█████████████████████████████████████████████████████████████████████| 40/40 [00:07<00:00,  5.24it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.29it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.32it/s]
Total progress: 100%|█████████████████████████████████████████████████████████████████████| 40/40 [00:07<00:00,  5.31it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.29it/s]
Total progress: 100%|█████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  6.14it/s]
X/Y/Z plot will create 6 images on 1 3x1 grid; 2 images per cell. (Total steps to process: 120)20 [00:03<00:00,  7.34it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.28it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.33it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.24it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.29it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.30it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.29it/s]
Total progress: 100%|███████████████████████████████████████████████████████████████████| 120/120 [00:23<00:00,  5.08it/s]
Total progress: 100%|███████████████████████████████████████████████████████████████████| 120/120 [00:23<00:00,  7.29it/s]

Additional information

No response

catboxanon commented 1 year ago

Duplicate of https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3333 Solution is to set a different font. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3333#issuecomment-1286999052