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

[Bug]: The page layout is chaotic

Open Mr-P-hainan opened this issue 3 years ago • 5 comments

Is there an existing issue for this?

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

What happened?

I started up the stable-diffusion-webui, and its page layout is chaotic. None of the labels is in the right places. 屏幕截图 2023-02-22 140703 屏幕截图 2023-02-22 140719 屏幕截图 2023-02-22 141421

Steps to reproduce the problem

just start the webui.bat.

What should have happened?

I don't know

Commit where the problem happens

fc2511737a

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome, Microsoft Edge

Command Line Arguments

@echo off

if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")


set ERROR_REPORTING=FALSE

mkdir tmp 2>NUL

%PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :check_pip
echo Couldn't launch python
goto :show_stdout_stderr

:check_pip
%PYTHON% -mpip --help >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
if "%PIP_INSTALLER_LOCATION%" == "" goto :show_stdout_stderr
%PYTHON% "%PIP_INSTALLER_LOCATION%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
echo Couldn't install pip
goto :show_stdout_stderr

:start_venv
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
if ["%SKIP_VENV%"] == ["1"] goto :skip_venv

dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv

for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
%PYTHON_FULLNAME% -m venv "%VENV_DIR%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
echo Unable to create venv in directory "%VENV_DIR%"
goto :show_stdout_stderr

:activate_venv
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%

:skip_venv
if [%ACCELERATE%] == ["True"] goto :accelerate
goto :launch

:accelerate
echo Checking for accelerate
set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch

:launch
%PYTHON% launch.py %*
pause
exit /b

:accelerate_launch
echo Accelerating
%ACCELERATE% launch --num_cpu_threads_per_process=6 launch.py
pause
exit /b

:show_stdout_stderr

echo.
echo exit code: %errorlevel%

for /f %%i in ("tmp\stdout.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stdout:
type tmp\stdout.txt

:show_stderr
for /f %%i in ("tmp\stderr.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stderr:
type tmp\stderr.txt

:endofscript

echo.
echo Launch unsuccessful. Exiting.
pause

List of extensions

屏幕截图 2023-02-22 141647

Console logs

D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17>set GIT_PYTHON_GIT_EXECUTABLE=git\\bin\\git.exe

D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17>python\python.exe webui.py --medvram --xformers
SD-Webui API layer loaded
Loading weights [fc2511737a] from D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors
Creating model from config: D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Couldn't find VAE named vae-ft-mse-840000-ema-pruned.ckpt; using None instead
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 1.8s (create model: 0.4s, apply weights to model: 0.7s, apply half(): 0.7s).
Error executing callback ui_tabs_callback for D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension\scripts\main.py
Traceback (most recent call last):
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension\scripts\main.py", line 64, in add_tab
    update_app()
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension\scripts\main.py", line 55, in update_app
    run(f'"{git}" -C "' + os.path.join(scripts.basedir(), usefulDirs[0], usefulDirs[1]) +
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "git" -C "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension" submodule update --init --recursive --remote
Error code: 1
stdout: <empty>
stderr: '"git"' ڲⲿҲǿеij
ļ



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\modules\script_callbacks.py", line 119, in ui_tabs_callback
    res += c.callback() or []
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension\scripts\main.py", line 66, in add_tab
    update_app()
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension\scripts\main.py", line 55, in update_app
    run(f'"{git}" -C "' + os.path.join(scripts.basedir(), usefulDirs[0], usefulDirs[1]) +
  File "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "git" -C "D:\PersonalSoftware\AI_painting\stable-diffusion-webui_23-02-17\extensions\openOutpaint-webUI-extension" submodule update --init --recursive --remote
Error code: 1
stdout: <empty>
stderr: '"git"' ڲⲿҲǿеij
ļ



Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.

Additional information

No response

Mr-P-hainan avatar Feb 22 '23 06:02 Mr-P-hainan

hmm? you can try installing a browser you have not used before, like firefox. maybe its your browser extensions?

ClashSAN avatar Feb 22 '23 08:02 ClashSAN

I have tried installing Google chrome (I have never installed it),but it was the same result.

Mr-P-hainan avatar Feb 22 '23 10:02 Mr-P-hainan

It looks like you're not loading the UI properly. The style sheets are likely missing or never generated. I assume this is a fresh copy of the code. What is your operating enviornment? OS, System Specs, Python Version, etc.

KataiKi avatar Feb 22 '23 17:02 KataiKi

Try disabling the OpenOutpaint extension and see if that fixes it. There are OpenOutpaint errors all over your screenshots.

Alchete avatar Feb 22 '23 18:02 Alchete

That looks an awful lot like when I tried out the latest gradio version. Check if you have a 3.16 version running. 3.17 won't work.

AlUlkesh avatar Feb 23 '23 00:02 AlUlkesh