You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I download the code, and run testing using pre-trained model in Windows:
python main.py --is_train=False --is_eval=False --test_img=Test/Set5/butterfly.png
but an error occurs at model.py in function "def test(self, config): ". At line :
result = self.sess.run([self.pred], feed_dict={self.images: input_ / 255.0})
error information as follows:
Inputs to operation ArithmeticOptimizer/AddOpsRewrite_Leaf_1_Add_11 of type _MklAddN must have the same size and shape. Input 0: [4194304] != input 1: [1,256,256,64]
[[Node: ArithmeticOptimizer/AddOpsRewrite_Leaf_1_Add_11 = _MklAddN[N=2, T=DT_FLOAT, _kernel="MklOp", _device="/job:localhost/replica:0/task:0/device:CPU:0"](Conv2D_10, add_1, Conv2D_10:2, DMT/_324)]]
The shape of Input Image is (1, 256, 256, 3),so I think there maybe be some wrong in somewhere in the network.
The text was updated successfully, but these errors were encountered:
I download the code, and run testing using pre-trained model in Windows:
python main.py --is_train=False --is_eval=False --test_img=Test/Set5/butterfly.png
but an error occurs at model.py in function "def test(self, config): ". At line :
result = self.sess.run([self.pred], feed_dict={self.images: input_ / 255.0})
error information as follows:
Inputs to operation ArithmeticOptimizer/AddOpsRewrite_Leaf_1_Add_11 of type _MklAddN must have the same size and shape. Input 0: [4194304] != input 1: [1,256,256,64]
[[Node: ArithmeticOptimizer/AddOpsRewrite_Leaf_1_Add_11 = _MklAddN[N=2, T=DT_FLOAT, _kernel="MklOp", _device="/job:localhost/replica:0/task:0/device:CPU:0"](Conv2D_10, add_1, Conv2D_10:2, DMT/_324)]]
The shape of Input Image is (1, 256, 256, 3),so I think there maybe be some wrong in somewhere in the network.
The text was updated successfully, but these errors were encountered: