mirror of https://github.com/bmaltais/kohya_ss
3.4 KiB
3.4 KiB
Windows – Installation (uv method)
Recommended for most Windows users.
Table of Contents
Prerequisites
- Python 3.11.9 – enable "Add to PATH"
[!NOTE] The
uvenvironment will use the Python version specified in the.python-versionfile at the root of the repository. You can edit this file to change the Python version used byuv.
- Git for Windows
- CUDA Toolkit 12.8
- NVIDIA GPU – Required for training; VRAM needs vary
- (Optional) NVIDIA cuDNN – Improves training speed and batch size
- (Optional) Visual Studio Redistributables: vc_redist.x64.exe
Installation Steps
-
Install Python 3.11.9
✅ Enable the "Add to PATH" option during setup -
Install CUDA 12.8 Toolkit
-
Install Git
-
Install Visual Studio Redistributables
Clone the Repository
Clone with submodules:
git clone --recursive https://github.com/bmaltais/kohya_ss.git
cd kohya_ss
Start the GUI
To launch the GUI, run:
.\gui-uv.bat
If uv is not installed, the script will prompt you:
- Press
Yto installuvautomatically - Or press
Nto cancel and installuvmanually from https://astral.sh/uv
Once installed, you can also start the GUI with additional flags:
.\gui-uv.bat --listen 127.0.0.1 --server_port 7860 --inbrowser --share
This script utilizes the uv managed environment and handles dependencies and updates automatically.
Available CLI Options
--help show this help message and exit
--config CONFIG Path to the toml config file for interface defaults
--debug Debug on
--listen LISTEN IP to listen on for connections to Gradio
--username USERNAME Username for authentication
--password PASSWORD Password for authentication
--server_port SERVER_PORT
Port to run the server listener on
--inbrowser Open in browser
--share Share the gradio UI
--headless Is the server headless
--language LANGUAGE Set custom language
--use-ipex Use IPEX environment
--use-rocm Use ROCm environment
--do_not_share Do not share the gradio UI
--requirements REQUIREMENTS
requirements file to use for validation
--root_path ROOT_PATH
`root_path` for Gradio to enable reverse proxy support. e.g. /kohya_ss
--noverify Disable requirements verification
This script utilizes the uv managed environment and automatically handles dependencies and updates.
Upgrade Instructions
- Pull the latest changes:
git pull
- Run
gui-uv.batagain. It will update the environment automatically.