Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there something wrong with the network? #29

Open
HaolyShiit opened this issue Dec 25, 2019 · 0 comments
Open

Is there something wrong with the network? #29

HaolyShiit opened this issue Dec 25, 2019 · 0 comments

Comments

@HaolyShiit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant