Commit Graph

3351 Commits (1538a51e68a069f8212cff9cc797bcfc653dc971)

Author SHA1 Message Date
Disty0 1538a51e68 Cleanup 2025-06-13 20:31:42 +03:00
Disty0 df35d93289 Update IPEX and ROCm 2025-06-13 20:17:05 +03:00
bmaltais c736aec1f7
Merge pull request #3278 from niels-numbers/master
Improve README installation section for clarity and easier uv-based setup
2025-06-11 21:18:42 -04:00
Adam Nielsen c083029023 Refactor Installation Section for Clarity and Easier uv-Based Setup 2025-06-12 00:30:22 +02:00
bmaltais ed2ef9aa0f
Merge pull request #3274 from bmaltais/add-conda-instructions
Add Conda installation instructions to README
2025-06-05 15:05:28 -04:00
google-labs-jules[bot] 873f571ebb Add Conda installation instructions for Windows to README
This commit updates the README.md file to include Windows-specific
instructions for setting up the project using a Conda environment.

The "Using `conda`" subsection under "Installation Methods" now clarifies:
- `chmod +x` commands are not needed for Windows.
- Windows users should use `setup.bat` and `gui.bat` (or `gui.ps1`)
  instead of the `.sh` scripts.

The Table of Contents was previously updated to include the "Using `conda`"
section.
2025-06-05 19:04:42 +00:00
google-labs-jules[bot] 926625703d Add Conda installation instructions to README
This commit adds a new section to the README.md file detailing how to set up the project using a Conda environment.

The new "Using `conda`" subsection under "Installation Methods" includes:
- Commands to create and activate a Conda environment with Python 3.11.
- Instructions on how to make the setup and GUI scripts executable and how to run them.

The Table of Contents has also been updated to reflect this new section.
2025-06-05 19:00:22 +00:00
bmaltais e23cd3e7a4
Merge pull request #3273 from ThanaritKanjanametawatAU/master
Add support for already activated conda environment setup
2025-06-05 14:56:56 -04:00
bmaltais ffc45e579e Update sd-scripts 2025-06-05 14:29:02 -04:00
Thanarit 271bcb3bd9 Modify the GUI script to check for and handle conda env 2025-06-06 00:33:16 +07:00
Thanarit 46a21899da Add support for already activated conda environment setup 2025-06-06 00:14:22 +07:00
bmaltais 08f2ddcf82
Merge pull request #3266 from jim60105/fix/typo
fix(validate_requirements): correct typo
2025-06-02 19:49:38 -04:00
CHEN, CHUN ae0f3dbf46
fix(validate_requirements): correct typo
- Fixes a typo in the variable name and log message from "reccomended" to the correct "recommended" when logging Apple MPS memory information.

Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
2025-06-02 19:39:03 +08:00
bmaltais 40556e9397
Merge pull request #3265 from bmaltais/fix/default-config-dialog-path
Fix: Default config file dialog to repo root
2025-06-01 13:56:50 -04:00
google-labs-jules[bot] 4ef34d9f5f Fix: Default config file dialog to repo root
Modified the get_file_path function in kohya_gui/common_gui.py
to ensure that when you are opening a configuration file, the
file dialog defaults to the kohya_ss repository root if no
initial path or only a filename is provided.

If a full or relative path is already present in the input field,
the dialog will open in the specified directory as before.

This change improves your experience by starting the file search
in a more relevant location.
2025-06-01 17:54:27 +00:00
google-labs-jules[bot] 69d8b96c1c Feat: Add logging for effective learning rates in LoRA GUI
This commit introduces a helper function, `get_effective_lr_messages`, into `kohya_gui/lora_gui.py` and integrates it into the `train_model` function.

The purpose is to provide you with clearer information about how the learning rates set in the GUI (Main LR, Text Encoder LR, U-Net LR, T5XXL LR) will be interpreted and effectively applied by the underlying `sd-scripts` training engine.

Before training commences, the GUI will now log:
- The Main LR.
- The effective LR for the primary Text Encoder (CLIP), indicating if it's a specific value or a fallback to the Main LR.
- The effective LR for the T5XXL Text Encoder (if applicable), indicating its source (specific, inherited from primary TE, or fallback to Main LR).
- The effective LR for the U-Net, indicating if it's a specific value or a fallback to the Main LR.

This enhances transparency by helping you understand how your LR settings interact, without modifying the `sd-scripts` submodule.
2025-06-01 13:59:07 +00:00
google-labs-jules[bot] d63a7fa2b6 Refactor: Clean up LR handling logic in LoRA GUI
This commit refactors the learning rate (LR) handling in `kohya_gui/lora_gui.py` for LoRA training.

The previous fix for LR misinterpretation involved commenting out a line. This commit completes the cleanup by:
- Removing the `do_not_set_learning_rate` variable and its associated conditional logic, which became redundant.
- Renaming the float-converted `learning_rate` to `learning_rate_float` for clarity.
- Ensuring that `learning_rate_float` and the float-converted `unet_lr_float` are consistently used when preparing the `config_toml_data` for the training script.

This makes the code cleaner and the intent of always passing the main learning rate (along with specific TE/UNet LRs) more direct. The functional behavior of the LR fix remains the same.
2025-06-01 12:29:08 +00:00
google-labs-jules[bot] 3a8b599ba9 Fix: Ensure main learning rate is used in LoRA training
The GUI logic was preventing the main learning rate from being passed to the training script if text_encoder_lr or unet_lr was set. This caused issues with optimizers like Prodigy, which might default to a very small LR if the main LR isn't provided.

This commit modifies kohya_gui/lora_gui.py to ensure the main learning_rate is always included in the parameters passed to the training script, allowing optimizers to use your specified main LR, TE LR, and UNet LR correctly.
2025-06-01 11:31:14 +00:00
bmaltais 1a0ee43ec8
Merge pull request #3263 from bmaltais/dependabot/github_actions/crate-ci/typos-1.32.0
Bump crate-ci/typos from 1.31.2 to 1.32.0
2025-06-01 06:57:26 -04:00
dependabot[bot] c5f12e83ef
Bump crate-ci/typos from 1.31.2 to 1.32.0
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.31.2 to 1.32.0.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/v1.31.2...v1.32.0)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-01 05:40:31 +00:00
bmaltais 932dbaae57 Merge branch 'lora' into dev 2025-05-27 08:47:58 -04:00
bmaltais c0be9f70da Cleanup files 2025-05-27 08:47:38 -04:00
bmaltais 992f3e7d55 Merge branch 'dev' 2025-05-26 21:37:50 -04:00
bmaltais d9c30a7176 Update release 2025-05-26 21:37:04 -04:00
bmaltais 66c159296e Merge branch 'dev' 2025-05-26 21:33:22 -04:00
bmaltais 8707d5ff24 Fix requirements issues 2025-05-26 21:33:06 -04:00
bmaltais 5264f5f6fe Update accelerate 2025-05-26 21:02:15 -04:00
bmaltais e6adcc355a Revert change 2025-05-26 20:58:30 -04:00
bmaltais e980bd555d Update accelerate 2025-05-26 20:32:46 -04:00
bmaltais ebcd203a82 Install cu128 for all 2025-05-26 20:18:59 -04:00
bmaltais 8c8f15b1ad Update uv requirements 2025-05-26 20:11:52 -04:00
bmaltais 7aa226ccba Update to cuda 12.8 to support 50X0 cards 2025-05-26 19:02:29 -04:00
bmaltais 3274cb7640 Merge branch 'dev' 2025-05-26 19:00:55 -04:00
bmaltais c1c723a3d9 Merge branch 'dev-cu128' into dev 2025-05-26 18:57:46 -04:00
bmaltais a9cf2a0c7c Add message when --quiet is used 2025-05-26 18:39:36 -04:00
bmaltais 0524896383 Add --quiet option to gui-uv.sh 2025-05-26 18:14:58 -04:00
bmaltais ac12faa5f7
Merge pull request #3255 from jim60105/dev-cu128
build(docker): upgrade to CUDA 12.8 and Debian 12
2025-05-26 13:29:24 -04:00
CHEN, CHUN cff20de128
build(docker): upgrade to CUDA 12.8 and Debian 12
- Update base image from Debian 11 (bullseye) to Debian 12 (bookworm)
- Upgrade CUDA version from 12.4 to 12.8
- Update PyTorch from version 2.5.1 to 2.7.0 with CUDA 12.8 support
- Change triton dependency from exact version 3.1.0 to minimum version constraint

Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
2025-05-27 00:19:05 +08:00
bmaltais 342c79fe83
Merge pull request #3254 from bmaltais/style/harmonize-colors
Style/harmonize colors
2025-05-26 08:53:14 -04:00
bmaltais ee716a17ec
Merge pull request #3253 from bmaltais/style/harmonize-colors
Style/harmonize colors
2025-05-26 08:52:29 -04:00
bmaltais 94ff5231fa Update style 2025-05-26 08:50:23 -04:00
google-labs-jules[bot] 5b5278d6e7 Refactor: Differentiate section backgrounds for visual separation
This commit updates `assets/style.css` to enhance visual distinction between UI sections in both light and dark themes, per your feedback.

Key changes:
- Restored original light theme background colors for UI sections, each having a unique subtle grey/off-white shade.
- Implemented new, distinct dark grey background shades for each UI section in the dark theme, ensuring they are visually separable.
- Updated hover effects for all sections in both themes to complement their unique background colors.
- Re-applied the modernized button styling (blue primary, teal accent) and associated text colors from a previous revision for overall theme consistency.

This approach provides clearer visual boundaries between different parts of the UI while maintaining a harmonious color scheme.
2025-05-26 12:37:01 +00:00
google-labs-jules[bot] ccf82f96ac Refactor: Harmonize CSS colors for light and dark themes
I've updated the color scheme in `assets/style.css` to create a more harmonious and consistent visual experience for you across both light and dark themes.

Key changes include:
- I defined a new color palette with primary, secondary, accent, and neutral colors.
- I revised light theme colors for backgrounds, buttons, and text to use the new palette.
- I adjusted dark theme colors to complement the light theme and ensure readability, using darker backgrounds and lighter text from the palette.
- I refined hover effects for better visual feedback in both themes.
- I ensured good contrast and accessibility with the new color choices.
2025-05-26 12:23:30 +00:00
bmaltais 70a4f53fa8 Update README with required CUDA version 2025-05-26 08:12:40 -04:00
bmaltais 5ab63e488d Update requirements file for 50X0 support 2025-05-26 07:11:25 -04:00
bmaltais 3be6719174 Removed deepspeed 2025-05-25 21:19:45 -04:00
bmaltais 757f4c15cf Updated to support 50X0 cards 2025-05-25 20:05:11 -04:00
bmaltais f56fb0f59f Update how uv is installed on windows 2025-05-25 19:16:58 -04:00
bmaltais 17075c4d25
Merge pull request #3252 from bmaltais/dev
v25.1.0
2025-05-25 18:12:14 -04:00
bmaltais 451f051d52
Update kohya_gui/blip2_caption_gui.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-25 18:10:24 -04:00