Skip to content

Commit

Permalink
Merge pull request #11 from bmaltais/dev
Browse files Browse the repository at this point in the history
Create model and log folder when running th dreambooth folder creatio…
  • Loading branch information
bmaltais authored Dec 20, 2022
2 parents 706dfe1 + 1bc5089 commit 8267f75
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Kohya's dreambooth and finetuning

This repo now combine bot Kohya_ss solution under one roof. I am merging both under a single repo to align with the new official kohya repo where he will maintain his code from now on: https://github.com/kohya-ss/sd-scripts
This repository now includes the solutions provided by Kohya_ss in a single location. I have combined both solutions under one repository to align with the new official Kohya repository where he will maintain his code from now on: https://github.com/kohya-ss/sd-scripts.

A new note accompaning the release of his new repo can be found here: https://note.com/kohya_ss/n/nba4eceaa4594
A note accompanying the release of his new repository can be found here: https://note.com/kohya_ss/n/nba4eceaa4594

## Dreambooth

Expand Down
2 changes: 2 additions & 0 deletions README_dreambooth.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ Drop by the discord server for support: https://discord.com/channels/10415185624

## Change history

* 12/19 (v18.5) update:
- Create model and log folder when running th dreambooth folder creation utility
* 12/19 (v18.4) update:
- Add support for shuffle_caption, save_state, resume, prior_loss_weight under "Advanced Configuration" section
- Fix issue with open/save config not working properly
Expand Down
9 changes: 9 additions & 0 deletions library/dreambooth_folder_creation_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ def dreambooth_folder_preparation(
util_regularization_images_dir_input, regularization_dir
)

# create log and model folder
# Check if the log folder exists and create it if it doesn't
if not os.path.exists(os.path.join(util_training_dir_output, 'log')):
os.makedirs(os.path.join(util_training_dir_output, 'log'))

# Check if the model folder exists and create it if it doesn't
if not os.path.exists(os.path.join(util_training_dir_output, 'model')):
os.makedirs(os.path.join(util_training_dir_output, 'model'))

print(
f'Done creating kohya_ss training folder structure at {util_training_dir_output}...'
)
Expand Down

0 comments on commit 8267f75

Please sign in to comment.