java.lang.IllegalArgumentException: Can not squeeze dim[1], expected a dimension of 1, got 0
[[{{node InceptionV3/Logits/SpatialSqueeze}} = Squeeze[T=DT_FLOAT, squeeze_dims=[1, 2], _device="/job:localhost/replica:0/task:0/device:CPU:0"](InceptionV3/Logits/Conv2d_1c_1x1/BiasAdd)]]
以上是錯誤的具體提示信息,錯誤原因是輸入圖片的尺寸時出錯,inceptionv3的默認尺寸時299X299。
對於inceptionv1以及v2是244X244。使用的時候注意。