diff --git a/config example.toml b/config example.toml index fff12555..3ab9609a 100644 --- a/config example.toml +++ b/config example.toml @@ -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] diff --git a/gui-uv.bat b/gui-uv.bat index 2b1b8b8a..ec5b7dcf 100644 --- a/gui-uv.bat +++ b/gui-uv.bat @@ -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 %* ) ) diff --git a/kohya_gui/class_flux1.py b/kohya_gui/class_flux1.py index ba421820..a16d1102 100644 --- a/kohya_gui/class_flux1.py +++ b/kohya_gui/class_flux1.py @@ -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, @@ -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,