diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-02 15:01:11 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-02 15:01:11 +0000 |
commit | 11d23e8ca55c097ecfa255a05b63f194e25f08be (patch) | |
tree | fa9933ad1e9f0e3b33c89b23781032dc5a66fc4a /modules/ui_toprow.py | |
parent | 4a666381bf98333ba4512db0f0033df5f6a08771 (diff) | |
download | stable-diffusion-webui-gfx803-11d23e8ca55c097ecfa255a05b63f194e25f08be.tar.gz stable-diffusion-webui-gfx803-11d23e8ca55c097ecfa255a05b63f194e25f08be.tar.bz2 stable-diffusion-webui-gfx803-11d23e8ca55c097ecfa255a05b63f194e25f08be.zip |
remove Train/Preprocessing tab and put all its functionality into extras batch images mode
Diffstat (limited to 'modules/ui_toprow.py')
-rw-r--r-- | modules/ui_toprow.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/ui_toprow.py b/modules/ui_toprow.py index 985b5a2d..88838f97 100644 --- a/modules/ui_toprow.py +++ b/modules/ui_toprow.py @@ -34,8 +34,10 @@ class Toprow: submit_box = None
- def __init__(self, is_img2img, is_compact=False):
- id_part = "img2img" if is_img2img else "txt2img"
+ def __init__(self, is_img2img, is_compact=False, id_part=None):
+ if id_part is None:
+ id_part = "img2img" if is_img2img else "txt2img"
+
self.id_part = id_part
self.is_img2img = is_img2img
self.is_compact = is_compact
|