mirror of https://github.com/bmaltais/kohya_ss
27 lines
999 B
Batchfile
27 lines
999 B
Batchfile
@echo off
|
|
|
|
set PYTHON_VER=3.10.9
|
|
|
|
REM Check if Python version meets the recommended version
|
|
python --version 2>nul | findstr /b /c:"Python %PYTHON_VER%" >nul
|
|
if errorlevel 1 (
|
|
echo Warning: Python version %PYTHON_VER% is recommended.
|
|
)
|
|
|
|
IF NOT EXIST venv (
|
|
python -m venv venv
|
|
) ELSE (
|
|
echo venv folder already exists, skipping creation...
|
|
)
|
|
call .\venv\Scripts\activate.bat
|
|
|
|
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
|
|
pip install --use-pep517 --upgrade -r requirements.txt
|
|
pip install -U -I --no-deps https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl
|
|
|
|
copy /y .\bitsandbytes_windows\*.dll .\venv\Lib\site-packages\bitsandbytes\
|
|
copy /y .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py
|
|
copy /y .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
|
|
|
|
accelerate config
|