Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring back SDXL Parameters accordion for dreambooth gui #2694

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions kohya_gui/dreambooth_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,9 @@ def train_model(
cache_text_encoder_outputs = sdxl and sdxl_cache_text_encoder_outputs
no_half_vae = sdxl and sdxl_no_half_vae

cache_text_encoder_outputs = sdxl and sdxl_cache_text_encoder_outputs
no_half_vae = sdxl and sdxl_no_half_vae

if max_data_loader_n_workers == "" or None:
max_data_loader_n_workers = 0
else:
Expand Down Expand Up @@ -1020,6 +1023,11 @@ def dreambooth_tab(
source_model.sdxl_checkbox, config=config, trainer="finetune",
)

# Add SDXL Parameters
sdxl_params = SDXLParameters(
source_model.sdxl_checkbox, config=config
)

with gr.Accordion("Advanced", open=False, elem_id="advanced_tab"):
advanced_training = AdvancedTraining(headless=headless, config=config)
advanced_training.color_aug.change(
Expand Down