Skip to content

Commit

Permalink
Update gui-uv.bat and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Jan 17, 2025
1 parent 319b11b commit 86fbd8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Edit the values to suit your needs

[settings]
use_shell = false # Use shell furing process run of sd-scripts oython code. Most secure is false but some systems may require it to be true to properly run sd-scripts.
use_shell = false # Use shell during process run of sd-scripts oython code. Most secure is false but some systems may require it to be true to properly run sd-scripts.

# Default folders location
[model]
Expand Down
10 changes: 4 additions & 6 deletions gui-uv.bat
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
@echo off

set PYTHON_VER=3.10.9

:: Update pip to latest version
:: Install uv latest version
pip install --upgrade uv -q

set PATH=%PATH%;%~dp0venv\Lib\site-packages\torch\lib

echo Starting the GUI... this might take some time...
echo Starting the GUI... this might take some time... Especially on 1st run after install or update...

:: If the exit code is 0, run the kohya_gui.py script with the command-line arguments
if %errorlevel% equ 0 (
REM Check if the batch was started via double-click
IF /i "%comspec% /c %~0 " equ "%cmdcmdline:"=%" (
REM echo This script was started by double clicking.
cmd /k uv run kohya_gui.py --noverify %*
cmd /k uv run --link-mode=copy kohya_gui.py --noverify %*
) ELSE (
REM echo This script was started from a command prompt.
uv run kohya_gui.py --noverify %*
uv run --link-mode=copy kohya_gui.py --noverify %*
)
)
4 changes: 2 additions & 2 deletions kohya_gui/class_flux1.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def noise_offset_type_change(
# interactive=True,
# )
self.single_blocks_to_swap = gr.Slider(
label="Single Blocks to swap (depercated)",
label="Single Blocks to swap (deprecated)",
value=self.config.get("flux1.single_blocks_to_swap", 0),
info="[Experimental] Sets the number of 'single_blocks' (~320MB) to swap during the forward and backward passes.",
minimum=0,
Expand All @@ -221,7 +221,7 @@ def noise_offset_type_change(
interactive=True,
)
self.double_blocks_to_swap = gr.Slider(
label="Double Blocks to swap (depercated)",
label="Double Blocks to swap (deprecated)",
value=self.config.get("flux1.double_blocks_to_swap", 0),
info="[Experimental] Sets the number of 'double_blocks' (~640MB) to swap during the forward and backward passes.",
minimum=0,
Expand Down

0 comments on commit 86fbd8c

Please sign in to comment.