Skip to content

Commit

Permalink
Merge branch 'sd3' into faster-block-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Nov 11, 2024
2 parents 02bd76e + 8fac3c3 commit 7feaae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ The command to install PyTorch is as follows:

### Recent Updates

Nov 9, 2024:

- Fixed an issue where the image size could not be obtained when caching latents was enabled and a specific file name existed, causing the latent size to be incorrect. See PR [#1770](https://github.com/kohya-ss/sd-scripts/pull/1770) for details. Thanks to feffy380!

Nov 7, 2024:

- The distribution of timesteps during SD3/3.5 training has been adjusted. This applies to both fine-tuning and LoRA training. PR [#1768](https://github.com/kohya-ss/sd-scripts/pull/1768) Thanks to Dango233!
Expand Down
2 changes: 1 addition & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ def load_dreambooth_dir(subset: DreamBoothSubset):

# make image path to npz path mapping
npz_paths = glob.glob(os.path.join(subset.image_dir, "*" + strategy.cache_suffix))
npz_paths.sort()
npz_paths.sort(key=lambda item: item.rsplit("_", maxsplit=2)[0]) # sort by name excluding resolution and cache_suffix
npz_path_index = 0

size_set_count = 0
Expand Down

0 comments on commit 7feaae5

Please sign in to comment.