Commit
·
9a2d101
1
Parent(s):
a0ffb47
siemens logo and new init image
Browse files- .gitignore +1 -0
- resources/init.png +2 -2
- resources/{qm_logo.png → siemens_qm_logo.png} +2 -2
- webui.py +4 -4
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
__pycache__
|
2 |
*.ckpt
|
3 |
*.safetensors
|
|
|
1 |
+
.DS_Store
|
2 |
__pycache__
|
3 |
*.ckpt
|
4 |
*.safetensors
|
resources/init.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
resources/{qm_logo.png → siemens_qm_logo.png}
RENAMED
File without changes
|
webui.py
CHANGED
@@ -7,11 +7,11 @@ from PIL import Image, ImageDraw, ImageFont
|
|
7 |
|
8 |
from modules.sdxl_styles import style_keys, aspect_ratios
|
9 |
|
10 |
-
QM_LOGO = Image.open("resources/
|
11 |
QM_COLOR = Color(name="qm", c50="#effaed",c100="#def5db",c200="#64b445",c300="#c6eec0",c400="#b9ebb3",c500="#64b445",c600="#55993b",c700="#467e30",c800="#325a23",c900="#233f18",c950="#192d11")
|
12 |
PROMPT_EXAMPLES = ["Industrial automation in a huge factory",
|
13 |
"Advanced medical technology in a high tech laboratory",
|
14 |
-
"A group of happy
|
15 |
EXAMPLE_GREETINGS = [
|
16 |
"Siemens: Ingenuity for life",
|
17 |
"Herzliche Grüße für einen besonderen Tag",
|
@@ -69,9 +69,9 @@ def overlay_image(image_path, toggle_greet, greet):
|
|
69 |
HEIGHT, TEXT_PADDING, TEXTBOX_HEIGHT = 100, 32, 56
|
70 |
TEXTBOX_WIDTH = 1280-HEIGHT-4*TEXT_PADDING
|
71 |
|
72 |
-
X_RECT=1280-HEIGHT-2*TEXT_PADDING
|
73 |
image.rectangle(((X_RECT, 768-HEIGHT), (1280, 766)), fill=(0, 0, 0, 75))
|
74 |
-
image._image.paste(QM_LOGO, (
|
75 |
if (toggle_greet):
|
76 |
image.rectangle(((0, 768-HEIGHT), (X_RECT-1, 768)), fill=(255, 255, 255, 190))
|
77 |
txt_image = Image.new('RGBA', (4*1280, 4*TEXTBOX_HEIGHT), (255,255,255,0))
|
|
|
7 |
|
8 |
from modules.sdxl_styles import style_keys, aspect_ratios
|
9 |
|
10 |
+
QM_LOGO = Image.open("resources/siemens_qm_logo.png")
|
11 |
QM_COLOR = Color(name="qm", c50="#effaed",c100="#def5db",c200="#64b445",c300="#c6eec0",c400="#b9ebb3",c500="#64b445",c600="#55993b",c700="#467e30",c800="#325a23",c900="#233f18",c950="#192d11")
|
12 |
PROMPT_EXAMPLES = ["Industrial automation in a huge factory",
|
13 |
"Advanced medical technology in a high tech laboratory",
|
14 |
+
"A diverse group of happy people in a modern office"]
|
15 |
EXAMPLE_GREETINGS = [
|
16 |
"Siemens: Ingenuity for life",
|
17 |
"Herzliche Grüße für einen besonderen Tag",
|
|
|
69 |
HEIGHT, TEXT_PADDING, TEXTBOX_HEIGHT = 100, 32, 56
|
70 |
TEXTBOX_WIDTH = 1280-HEIGHT-4*TEXT_PADDING
|
71 |
|
72 |
+
X_RECT=1280-HEIGHT-2*TEXT_PADDING-250
|
73 |
image.rectangle(((X_RECT, 768-HEIGHT), (1280, 766)), fill=(0, 0, 0, 75))
|
74 |
+
image._image.paste(QM_LOGO, (885,687), QM_LOGO)
|
75 |
if (toggle_greet):
|
76 |
image.rectangle(((0, 768-HEIGHT), (X_RECT-1, 768)), fill=(255, 255, 255, 190))
|
77 |
txt_image = Image.new('RGBA', (4*1280, 4*TEXTBOX_HEIGHT), (255,255,255,0))
|