Skip to content

Commit

Permalink
Merge pull request #2241 from bmaltais/relocate-config
Browse files Browse the repository at this point in the history
Relocate config file accordion
  • Loading branch information
bmaltais committed Apr 9, 2024
2 parents 9493d6e + 97d3102 commit 39b1bfd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v23.1.3
v23.1.4
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The GUI allows you to set the training parameters and generate and run the requi
- [SDXL training](#sdxl-training)
- [Masked loss](#masked-loss)
- [Change History](#change-history)
- [2024/04/08 (v23.1.4)](#20240408-v2314)
- [2024/04/08 (v23.1.3)](#20240408-v2313)
- [2024/04/08 (v23.1.2)](#20240408-v2312)
- [2024/04/07 (v23.1.1)](#20240407-v2311)
Expand Down Expand Up @@ -406,6 +407,10 @@ ControlNet dataset is used to specify the mask. The mask images should be the RG
## Change History
### 2024/04/08 (v23.1.4)
- Relocate config accordion to the top of the GUI.
### 2024/04/08 (v23.1.3)
- Fix dataset preparation bug.
Expand Down
8 changes: 4 additions & 4 deletions kohya_gui/dreambooth_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,10 @@ def dreambooth_tab(
with gr.Tab("Training"), gr.Column(variant="compact"):
gr.Markdown("Train a custom model using kohya dreambooth python code...")

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Accordion("Accelerate launch", open=False), gr.Column():
accelerate_launch = AccelerateLaunch(config=config)

Expand Down Expand Up @@ -793,10 +797,6 @@ def dreambooth_tab(
)
gradio_dataset_balancing_tab(headless=headless)

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Column(), gr.Group():
with gr.Row():
button_run = gr.Button("Start training", variant="primary")
Expand Down
8 changes: 4 additions & 4 deletions kohya_gui/finetune_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,10 @@ def finetune_tab(headless=False, config: dict = {}):
with gr.Tab("Training"), gr.Column(variant="compact"):
gr.Markdown("Train a custom model using kohya finetune python code...")

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Accordion("Accelerate launch", open=False), gr.Column():
accelerate_launch = AccelerateLaunch(config=config)

Expand Down Expand Up @@ -893,10 +897,6 @@ def list_presets(path):
label="Weighted captions", value=False
)

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Column(), gr.Group():
with gr.Row():
button_run = gr.Button("Start training", variant="primary")
Expand Down
8 changes: 4 additions & 4 deletions kohya_gui/lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,10 @@ def lora_tab(
"Train a custom model using kohya train network LoRA python code..."
)

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Accordion("Accelerate launch", open=False), gr.Column():
accelerate_launch = AccelerateLaunch(config=config)

Expand Down Expand Up @@ -1919,10 +1923,6 @@ def update_LoRA_settings(
)
gradio_dataset_balancing_tab(headless=headless)

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless, config=config)

with gr.Column(), gr.Group():
with gr.Row():
button_run = gr.Button("Start training", variant="primary")
Expand Down
4 changes: 4 additions & 0 deletions kohya_gui/textual_inversion_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ def ti_tab(headless=False, default_output_dir=None, config: dict = {}):
with gr.Tab("Training"), gr.Column(variant="compact"):
gr.Markdown("Train a TI using kohya textual inversion python code...")

# Setup Configuration Files Gradio
with gr.Accordion("Configuration", open=False):
configuration = ConfigurationFile(headless=headless)

with gr.Accordion("Accelerate launch", open=False), gr.Column():
accelerate_launch = AccelerateLaunch(config=config)

Expand Down

0 comments on commit 39b1bfd

Please sign in to comment.