Skip to content

Commit

Permalink
v21.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Apr 7, 2023
1 parent c4e91a2 commit 8e582ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ This will store a backup file with your current locally installed pip packages a
## Change History
* 2023/04/04 (v21.5.0)
* 2023/04/07 (v21.5.0)
- Update MacOS and Linux install scripts. Thanks @jstayco
- Update windows upgrade ps1 and bat
- Update kohya_ss sd-script code to latest release... this is a big one so it might cause some training issue. If you find that this release is causing issues for you you can go back to the previous release with `git checkout v21.4.2` and then run the upgrade script for your platform. Here is the list of changes in the new sd-scripts:
Expand Down Expand Up @@ -291,6 +291,8 @@ This will store a backup file with your current locally installed pip packages a
- `conv_block_dims` : Expand LoRA to Conv2d 3x3 and specify the dim (rank) of each block.
- `conv_block_alphas` : Specify the alpha of each block when expanding LoRA to Conv2d 3x3. If omitted, the value of conv_alpha is used.
- Add GUI support for new features introduced above by kohya_ss. Those will be visible only if the LoRA is of type `Standard` or `kohya LoCon`. You will find the new parameters under the `Advanced Configuration` accordion in the `Training parameters` tab.
- Various improvements to linux and macos srtup scripts thanks to @Oceanswave and @derVedro
- Integrated sd-scripts commits into commit history. Thanks to @Cauldrath
* 2023/04/02 (v21.4.2)
- removes TensorFlow from requirements.txt for Darwin platforms as pip does not support advanced conditionals like CPU architecture. The logic is now defined in setup.sh to avoid version bump headaches, and the selection logic is in the pre-existing pip function. Additionally, the release includes the addition of the tensorflow-metal package for M1+ Macs, which enables GPU acceleration per Apple's documentation. Thanks @jstayco
* 2023/04/01 (v21.4.1)
Expand Down
3 changes: 3 additions & 0 deletions library/dataset_balancing_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def dataset_balancing(concept_repeats, folder, insecure):

# Count the number of image files
images = len(image_files)

if images == 0:
print(f'No images of type .jpg, .jpeg, .png, .gif, .webp were found in {os.listdir(os.path.join(folder, subdir))}')

# Check if the subdirectory name starts with a number inside braces,
# indicating that the repeats value should be multiplied
Expand Down
9 changes: 9 additions & 0 deletions setup.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
@echo off

set PYTHON_VER=3.10.9

REM Check if Python version meets the recommended version
python --version 2>nul | findstr /b /c:"Python %PYTHON_VER%" >nul
if errorlevel 1 (
echo Warning: Python version %PYTHON_VER% is recommended.
)

IF NOT EXIST venv (
python -m venv venv
) ELSE (
Expand Down

0 comments on commit 8e582ca

Please sign in to comment.