We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37f4437 commit 1d52a2bCopy full SHA for 1d52a2b
tools/infer/utility.py
@@ -621,7 +621,7 @@ def text_visual(
621
), "The number of txts and corresponding scores must match"
622
623
def create_blank_img():
624
- blank_img = np.ones(shape=[img_h, img_w], dtype=np.int8) * 255
+ blank_img = np.ones(shape=[img_h, img_w], dtype=np.uint8) * 255
625
blank_img[:, img_w - 1 :] = 0
626
blank_img = Image.fromarray(blank_img).convert("RGB")
627
draw_txt = ImageDraw.Draw(blank_img)
0 commit comments