From 97d31023125e0f61ac25448dd6931c9e5987376b Mon Sep 17 00:00:00 2001 From: bmaltais Date: Tue, 9 Apr 2024 18:36:21 -0400 Subject: [PATCH] Relocate config file accordion --- .release | 2 +- README.md | 5 +++++ kohya_gui/dreambooth_gui.py | 8 ++++---- kohya_gui/finetune_gui.py | 8 ++++---- kohya_gui/lora_gui.py | 8 ++++---- kohya_gui/textual_inversion_gui.py | 4 ++++ 6 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.release b/.release index e09b6ed62..76a0279d3 100644 --- a/.release +++ b/.release @@ -1 +1 @@ -v23.1.3 \ No newline at end of file +v23.1.4 \ No newline at end of file diff --git a/README.md b/README.md index e378ea969..6e2cb4f41 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/kohya_gui/dreambooth_gui.py b/kohya_gui/dreambooth_gui.py index d0286c746..f578604fb 100644 --- a/kohya_gui/dreambooth_gui.py +++ b/kohya_gui/dreambooth_gui.py @@ -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) @@ -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") diff --git a/kohya_gui/finetune_gui.py b/kohya_gui/finetune_gui.py index ca25d7ad8..d9e99b529 100644 --- a/kohya_gui/finetune_gui.py +++ b/kohya_gui/finetune_gui.py @@ -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) @@ -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") diff --git a/kohya_gui/lora_gui.py b/kohya_gui/lora_gui.py index 5f5db53aa..29a78e5a2 100644 --- a/kohya_gui/lora_gui.py +++ b/kohya_gui/lora_gui.py @@ -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) @@ -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") diff --git a/kohya_gui/textual_inversion_gui.py b/kohya_gui/textual_inversion_gui.py index bdcf9084e..49fc1761b 100644 --- a/kohya_gui/textual_inversion_gui.py +++ b/kohya_gui/textual_inversion_gui.py @@ -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)