提交 db6c8253 编写于 作者: J jiangjiajun

fix bug of normalize

上级 e7283a12
......@@ -26,7 +26,7 @@ def normalize(im, mean, std, min_value=[0, 0, 0], max_value=[255, 255, 255]):
# Standardization (Z-score Normalization)
im -= mean
im /= std
return im
return im.astype('float32')
def permute(im, to_bgr=False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册