未验证 提交 a0ba64ee 编写于 作者: B Bin Long 提交者: GitHub

Update visualize.py

上级 78d1d0eb
......@@ -10,10 +10,9 @@ color_map = [[128, 64, 128], [244, 35, 231], [69, 69, 69], [102, 102, 156],
im = cv2.imread(sys.argv[1])
# Please note (224, 224) just for daheng model
print("visualizing...")
for i in range(0, 224):
for j in range(0, 224):
for i in range(0, im.rows):
for j in range(0, im.cols):
im[i, j] = color_map[im[i, j, 0]]
cv2.imwrite(sys.argv[1], im)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册