mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-11 05:17:05 +08:00
nit
This commit is contained in:
parent
678ac2ffc9
commit
d7da99a138
@ -24,7 +24,7 @@ def log_txt_as_img(wh, xc, size=10):
|
|||||||
try:
|
try:
|
||||||
draw.text((0, 0), lines, fill="black", font=font)
|
draw.text((0, 0), lines, fill="black", font=font)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
print("Cant encode string for logging. Skipping.") # noqa: T201
|
logging.warning("Cant encode string for logging. Skipping.")
|
||||||
|
|
||||||
txt = np.array(txt).transpose(2, 0, 1) / 127.5 - 1.0
|
txt = np.array(txt).transpose(2, 0, 1) / 127.5 - 1.0
|
||||||
txts.append(txt)
|
txts.append(txt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user