Skip to content

Commit

Permalink
Merge pull request #2385 from bmaltais/2378-error-on-runpod
Browse files Browse the repository at this point in the history
Prevent tkinter import crash
  • Loading branch information
bmaltais authored Apr 25, 2024
2 parents 81cd498 + 1f5f3cf commit 7e6d805
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.0.6
v24.0.7
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ 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/220 (v24.0.6)](#202404220-v2406)
- [2024/04/25 (v24.0.7)](#20240425-v2407)
- [2024/04/22 (v24.0.6)](#20240422-v2406)
- [2024/04/19 (v24.0.5)](#20240419-v2405)
- [New Contributors](#new-contributors)
- [2024/04/18 (v24.0.4)](#20240418-v2404)
Expand Down Expand Up @@ -414,7 +415,11 @@ ControlNet dataset is used to specify the mask. The mask images should be the RG

## Change History

### 2024/04/220 (v24.0.6)
### 2024/04/25 (v24.0.7)

- Prevent crash if tkinter is not installed

### 2024/04/22 (v24.0.6)

- Make start and stop buttons visible in headless
- Add validation for lr and optimizer arguments
Expand Down
5 changes: 4 additions & 1 deletion kohya_gui/common_gui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from tkinter import filedialog, Tk
try:
from tkinter import filedialog, Tk
except ImportError:
pass
from easygui import msgbox, ynbox
from typing import Optional
from .custom_logging import setup_logging
Expand Down

0 comments on commit 7e6d805

Please sign in to comment.