mirror of https://github.com/bmaltais/kohya_ss
18 lines
535 B
Batchfile
18 lines
535 B
Batchfile
@echo off
|
|
:: Deactivate the virtual environment
|
|
call .\venv\Scripts\deactivate.bat
|
|
|
|
:: Calling external python program to check for local modules
|
|
python .\tools\check_local_modules.py --no_question
|
|
|
|
:: Activate the virtual environment
|
|
call .\venv\Scripts\activate.bat
|
|
set PATH=%PATH%;%~dp0venv\Lib\site-packages\torch\lib
|
|
|
|
:: Validate requirements
|
|
python.exe .\tools\validate_requirements.py
|
|
|
|
:: If the exit code is 0, run the kohya_gui.py script with the command-line arguments
|
|
if %errorlevel% equ 0 (
|
|
python.exe kohya_gui.py %*
|
|
) |