Skip to content

Commit

Permalink
Fix max_train_steps_info error
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Nov 18, 2024
1 parent a6f0ff7 commit 309a9bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kohya_gui/dreambooth_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ def train_model(
gr.Button(visible=False or headless),
gr.Textbox(value=train_state_value),
]

max_train_steps_info = "Automatic by sd-scripts"

if executor.is_running():
log.error("Training is already running. Can't start another training session.")
Expand Down
2 changes: 2 additions & 0 deletions kohya_gui/finetune_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ def train_model(
gr.Button(visible=False or headless),
gr.Textbox(value=train_state_value),
]

max_train_steps_info = "Automatic by sd-scripts"

if executor.is_running():
log.error("Training is already running. Can't start another training session.")
Expand Down
2 changes: 2 additions & 0 deletions kohya_gui/lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,8 @@ def train_model(
gr.Button(visible=False or headless),
gr.Textbox(value=train_state_value),
]

max_train_steps_info = "Automatic by sd-scripts"

if executor.is_running():
log.error("Training is already running. Can't start another training session.")
Expand Down
2 changes: 2 additions & 0 deletions kohya_gui/textual_inversion_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ def train_model(
gr.Textbox(value=train_state_value),
]

max_train_steps_info = "Automatic by sd-scripts"

if executor.is_running():
log.error("Training is already running. Can't start another training session.")
return TRAIN_BUTTON_VISIBLE
Expand Down

0 comments on commit 309a9bb

Please sign in to comment.