diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9f6d672 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.sh text eol=lf +*.ps1 text eol=crlf +*.bat text eol=crlf +*.cmd text eol=crlf \ No newline at end of file diff --git a/README.md b/README.md index a8668cf..21eedeb 100644 --- a/README.md +++ b/README.md @@ -306,6 +306,7 @@ This will store a backup file with your current locally installed pip packages a - This feature is not tested with all combinations of datasets and training scripts, so there may be bugs. - Added workaround for an error that occurs when training with `fp16` or `bf16` in `fine_tune.py`. - Implemented DyLoRA GUI support. There will now be a new 'DyLoRA Unit` slider when the LoRA type is selected as `kohya DyLoRA` to specify the desired Unit value for DyLoRA training. + - Update gui.bat and gui.ps1 based on: https://github.com/bmaltais/kohya_ss/issues/188 * 2023/04/09 (v21.5.2) diff --git a/gui.bat b/gui.bat index d1f2864..d03bac1 100644 --- a/gui.bat +++ b/gui.bat @@ -2,6 +2,7 @@ :: Activate the virtual environment call .\venv\Scripts\activate.bat +set PATH=%PATH%;%~dp0venv\Lib\site-packages\torch\lib :: Validate the requirements and store the exit code python.exe .\tools\validate_requirements.py diff --git a/gui.ps1 b/gui.ps1 index 349ce97..3ee16fb 100644 --- a/gui.ps1 +++ b/gui.ps1 @@ -1,5 +1,6 @@ # Activate the virtual environment & .\venv\Scripts\activate +$env:PATH += ";$($MyInvocation.MyCommand.Path)\venv\Lib\site-packages\torch\lib" # Validate the requirements and store the exit code python.exe .\tools\validate_requirements.py