* I've added a `max_grad_norm` parameter to the Dreambooth GUI.
This change adds support for the `max_grad_norm` parameter to the Dreambooth training GUI.
- The `max_grad_norm` option is now available in the 'Basic' training parameters section.
- The value you set in the GUI for `max_grad_norm` is passed to the training script via the generated TOML configuration file, similar to its existing implementation in the LoRA GUI.
* Fix mising entry for max_grad_norm
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Update the uv installation instructions removing Docker from the list of exceptions and affected notes.
We have now switched to using uv for building docker image.
Both uv and pip are effective options for the docker environment, and I believe there is no need to highlight either method when making a selection.
I have left the Runpod as is because I do not have experience with Runpod.
Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
This commit significantly restructures the README.md to provide clearer documentation for using `uv` and `pip` for installation, upgrades, and launching the GUI.
A new 'Installation Methods' section has been added to centralize the explanation of `uv` and `pip`, outlining their differences and recommended use cases.
Existing sections ('Installation', 'Upgrading', 'Starting GUI Service') have been refactored to:
- Remove redundant instructions.
- Clearly refer to the 'Installation Methods' section.
- Distinguish between `uv`-specific scripts (e.g., `gui-uv.bat`) and `pip`-specific scripts (e.g., `gui.bat`).
The goal of these changes is to reduce confusion and make it easier for you to choose and follow the installation path that best suits your needs.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Upgrade base image from Python 3.10 to Python 3.11 slim on Debian Bullseye.
- Replace manual PyTorch and dependencies installation with uv environment management and installation.
- Add installation of large dependencies (torch, triton, tensorflow, onnxruntime-gpu) explicitly to optimize image layer caching.
- Switch from pip to uv for package management and dependency synchronization.
- Replace pillow with pillow-simd on amd64 architecture using uv-managed pip for performance improvements.
- Adjust environment variables to use the virtual environment under /venv instead of local user installs.
- Create /venv directory with appropriate permissions and copy the virtual environment from build stage.
- Modify CMD to add --noverify flag when launching kohya_gui.py.
- Remove requirements_linux_docker.txt file, consolidating dependency management into uv and pyproject.toml.
Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
This commit significantly revamps the README.md to improve clarity,
organization, and completeness for you.
Key changes include:
- Enhanced project introduction: Clearly defines project purpose and key features.
- Improved structure:
- Moved detailed installation guides (Docker, Runpod, Novita) and specific
troubleshooting (Tesla V100) to separate files in `docs/`.
- Standardized formatting for notes, warnings, and important messages.
- Content updates and additions:
- Added a "Prerequisites" section.
- Expanded the "LoRA" section with links to detailed documentation.
- Updated "SDXL training" and "Masked loss" sections, removing obsolete notes.
- Added "Contributing" guidelines and a "License" section.
- Incorporated badges for GitHub stars, forks, license, and issues.
- Removed the outdated "ToDo" section.
- Link verification: Ensured internal links are correct and external links
are properly formatted.
- Change History: Condensed the verbose v25.0.0 entry for better readability.
These changes aim to provide a more user-friendly and informative entry
point for the Kohya's GUI project.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* Adding some changes to support current apple silicone
Adding a note that MPS is detected in validation, and a current set of packages that offer MPS torch acceleration
* Adding MPS support for blip2
- Upgrade Gradio, diffusers and huggingface-hub to latest release to fix issue with ASGI.
- Add a new method to setup and run the GUI. You will find two new script for both Windows (gui-uv.bat) and Linux (gui-uv.sh). With those scripts there is no need to run setup.bat or setup.sh anymore.