2023-01-17 22:54:38 +00:00
|
|
|
@echo off
|
|
|
|
|
2023-03-12 14:11:41 +00:00
|
|
|
:: Activate the virtual environment
|
|
|
|
call .\venv\Scripts\activate.bat
|
2023-01-17 22:54:38 +00:00
|
|
|
|
2023-03-12 14:11:41 +00:00
|
|
|
:: Validate the requirements and store the exit code
|
|
|
|
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 %*
|
|
|
|
)
|