-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathReforge_NoOptions.bat
58 lines (48 loc) · 1.77 KB
/
Reforge_NoOptions.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@echo off
chcp 65001 > NUL
if not exist %~dp0stable-diffusion-webui-reForge\venv\ (
echo call %~dp0Update.bat
call %~dp0Update.bat
)
if not exist %~dp0stable-diffusion-webui-reForge\venv\ (
echo "[Error] %~dp0stable-diffusion-webui-reForge\venv\ が見つかりません。"
pause & exit /b 1
)
pushd %~dp0stable-diffusion-webui-reForge
@REM styles.csv の更新が必要になったらstyles.csvをリネームバックアップ
echo call %~dp0EasyReforge\Reforge\ReforgeConfig.bat config.json
call %~dp0EasyReforge\Reforge\ReforgeConfig.bat config.json
if %ERRORLEVEL% neq 0 ( popd & exit /b 1 )
echo call %~dp0EasyReforge\Reforge\ReforgeUiConfig.bat ui-config.json
call %~dp0EasyReforge\Reforge\ReforgeUiConfig.bat ui-config.json
if %ERRORLEVEL% neq 0 ( popd & exit /b 1 )
if not exist styles.csv (
echo copy %~dp0EasyReforge\Reforge\src\styles.csv styles.csv
copy %~dp0EasyReforge\Reforge\src\styles.csv styles.csv
)
set PYTHON=%~dp0stable-diffusion-webui-reForge\venv\Scripts\python.exe
set VENV_DIR=%~dp0stable-diffusion-webui-reForge\venv
where /Q git
if %ERRORLEVEL% equ 0 (
set GIT=
)
if %ERRORLEVEL% neq 0 (
set GIT=%~dp0EasyTools\Git\env\PortableGit\bin\git.exe
)
@REM LBW bug: --api --enable-insecure-extension-access
@REM https://github.com/hako-mikan/sd-webui-lora-block-weight?tab=readme-ov-file#api%E3%82%92%E9%80%9A%E3%81%97%E3%81%A6%E3%81%AE%E5%88%A9%E7%94%A8%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
if "%COMMANDLINE_ARGS%"=="" (
set "COMMANDLINE_ARGS=%*"
) else (
set "COMMANDLINE_ARGS=%COMMANDLINE_ARGS% %*"
)
echo.
echo PYTHON: %PYTHON%
echo VENV_DIR: %VENV_DIR%
echo GIT: %GIT%
echo webui.bat %COMMANDLINE_ARGS%
echo.
echo http://localhost:7860/
echo.
call webui.bat
popd rem %~dp0stable-diffusion-webui-reForge