Commit a30cc948 authored by liucong's avatar liucong
Browse files

修改python代码

parent 1eff8465
......@@ -18,7 +18,7 @@ def Preprocessing(pathOfImage):
new_size = [int(round(ratio * image.shape[0])), 256]
else:
new_size = [256, int(round(ratio * image.shape[1]))]
image = np.array(cv2.resize(image, (new_size[1],new_size[0]))) # w h 格式
image = np.array(cv2.resize(image, (new_size[1],new_size[0])))
# 裁剪中心窗口为224*224
h, w, c = image.shape
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment