keras单张预测与hdf5模型转化为.pb形式的脚本
单张预测:# 单张预测image = Image.open(r'0_predict.png')test = cv2.resize(np.array(image),(512,512))test = test.astype('float32')test=np.expand_dims(test,0)print(test.shape)# test = np.reshape(test...