-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
@echo off | ||
|
||
set PYTHON_VER=3.10.9 | ||
|
||
:: Update pip to latest version | ||
:: Install uv latest version | ||
pip install --upgrade uv -q | ||
|
||
set PATH=%PATH%;%~dp0venv\Lib\site-packages\torch\lib | ||
|
||
echo Starting the GUI... this might take some time... | ||
echo Starting the GUI... this might take some time... Especially on 1st run after install or update... | ||
|
||
:: If the exit code is 0, run the kohya_gui.py script with the command-line arguments | ||
if %errorlevel% equ 0 ( | ||
REM Check if the batch was started via double-click | ||
IF /i "%comspec% /c %~0 " equ "%cmdcmdline:"=%" ( | ||
REM echo This script was started by double clicking. | ||
cmd /k uv run kohya_gui.py --noverify %* | ||
cmd /k uv run --link-mode=copy kohya_gui.py --noverify %* | ||
) ELSE ( | ||
REM echo This script was started from a command prompt. | ||
uv run kohya_gui.py --noverify %* | ||
uv run --link-mode=copy kohya_gui.py --noverify %* | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters