Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
306e2ff6
Commit
306e2ff6
authored
Oct 21, 2022
by
DepFA
Committed by
AUTOMATIC1111
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update image_embedding.py
parent
d0ea471b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
image_embedding.py
modules/textual_inversion/image_embedding.py
+2
-2
No files found.
modules/textual_inversion/image_embedding.py
View file @
306e2ff6
...
...
@@ -134,7 +134,7 @@ def caption_image_overlay(srcimage, title, footerLeft, footerMid, footerRight, t
from
math
import
cos
image
=
srcimage
.
copy
()
fontsize
=
32
if
textfont
is
None
:
try
:
textfont
=
ImageFont
.
truetype
(
opts
.
font
or
Roboto
,
fontsize
)
...
...
@@ -151,7 +151,7 @@ def caption_image_overlay(srcimage, title, footerLeft, footerMid, footerRight, t
image
=
Image
.
alpha_composite
(
image
.
convert
(
'RGBA'
),
gradient
.
resize
(
image
.
size
))
draw
=
ImageDraw
.
Draw
(
image
)
fontsize
=
32
font
=
ImageFont
.
truetype
(
textfont
,
fontsize
)
padding
=
10
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment