第一次写博客 # 写博客 h, w, c = img.shape() ResizeImg = cv2.resize(img, (w, h)) dim = [h, w] dim = (batch, channal, h, w)