mirror of
https://github.com/lllyasviel/ControlNet.git
synced 2026-04-24 03:00:54 -04:00
fix font
This commit is contained in:
BIN
font/DejaVuSans.ttf
Normal file
BIN
font/DejaVuSans.ttf
Normal file
Binary file not shown.
@@ -16,7 +16,7 @@ def log_txt_as_img(wh, xc, size=10):
|
||||
for bi in range(b):
|
||||
txt = Image.new("RGB", wh, color="white")
|
||||
draw = ImageDraw.Draw(txt)
|
||||
font = ImageFont.truetype('data/DejaVuSans.ttf', size=size)
|
||||
font = ImageFont.truetype('font/DejaVuSans.ttf', size=size)
|
||||
nc = int(40 * (wh[0] / 256))
|
||||
lines = "\n".join(xc[bi][start:start + nc] for start in range(0, len(xc[bi]), nc))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user