提交 58036299 编写于 作者: J jiahongyu

Fix Image.ANTIALIAS bug

上级 02f34146
...@@ -47,7 +47,7 @@ BIN_FULLSIZE = 5348678856 ...@@ -47,7 +47,7 @@ BIN_FULLSIZE = 5348678856
def preprocess(img): def preprocess(img):
img_width, img_height = img.size img_width, img_height = img.size
img = img.resize((RESIZE_W, RESIZE_H), Image.ANTIALIAS) img = img.resize((RESIZE_W, RESIZE_H), Image.LANCZOS)
img = np.array(img) img = np.array(img)
# HWC to CHW # HWC to CHW
if len(img.shape) == 3: if len(img.shape) == 3:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册