Skip to content

Commit

Permalink
autodetect-modeltype: remove unused lambda inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
b-fission committed Aug 6, 2024
1 parent 5ccf90e commit ed22556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kohya_gui/extract_lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def change_sdxl(sdxl):

#secondary event on model_tuned for auto-detection of SDXL
model_tuned.change(
lambda sdxl, path: gr.Checkbox(value=SDModelType(path).Is_SDXL()),
inputs=[sdxl, model_tuned],
lambda path: gr.Checkbox(value=SDModelType(path).Is_SDXL()),
inputs=model_tuned,
outputs=sdxl
)

Expand Down
4 changes: 2 additions & 2 deletions kohya_gui/merge_lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def list_save_to(path):

#secondary event on sd_model for auto-detection of SDXL
sd_model.change(
lambda sdxl, path: gr.Checkbox(value=SDModelType(path).Is_SDXL()),
inputs=[sdxl_model, sd_model],
lambda path: gr.Checkbox(value=SDModelType(path).Is_SDXL()),
inputs=sd_model,
outputs=sdxl_model
)

Expand Down

0 comments on commit ed22556

Please sign in to comment.