diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-05 09:08:11 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-05 09:08:11 +0000 |
commit | f8d0cf6a6ec4911559cfecb9a9d1d46b547b38e8 (patch) | |
tree | e0072c8de53402a21020219880007252b1546508 /scripts/outpainting_mk_2.py | |
parent | 997461d3dd86f51c06ea0c2eff17ce8b8b48c0af (diff) | |
download | stable-diffusion-webui-gfx803-f8d0cf6a6ec4911559cfecb9a9d1d46b547b38e8.tar.gz stable-diffusion-webui-gfx803-f8d0cf6a6ec4911559cfecb9a9d1d46b547b38e8.tar.bz2 stable-diffusion-webui-gfx803-f8d0cf6a6ec4911559cfecb9a9d1d46b547b38e8.zip |
rework #6329 to remove duplicate code and add prevent tab names for showing in ids for scripts that only exist on one tab
Diffstat (limited to 'scripts/outpainting_mk_2.py')
-rw-r--r-- | scripts/outpainting_mk_2.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/outpainting_mk_2.py b/scripts/outpainting_mk_2.py index b4a0dc73..0906da6a 100644 --- a/scripts/outpainting_mk_2.py +++ b/scripts/outpainting_mk_2.py @@ -10,7 +10,6 @@ from PIL import Image, ImageDraw from modules import images, processing, devices
from modules.processing import Processed, process_images
from modules.shared import opts, cmd_opts, state
-import re
# this function is taken from https://github.com/parlance-zz/g-diffuser-bot
@@ -123,11 +122,6 @@ class Script(scripts.Script): def title(self):
return "Outpainting mk2"
- def elem_id(self, item_id):
- gen_elem_id = ('img2img' if self.is_img2img else 'txt2txt') + '_script_' + re.sub(r'\s', '_', self.title().lower()) + '_' + item_id
- gen_elem_id = re.sub(r'[^a-z_0-9]', '', gen_elem_id)
- return gen_elem_id
-
def show(self, is_img2img):
return is_img2img
|