raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.97k stars 664 forks source link

"tensorflow.python.framework.errors_impl.InvalidArgumentError: The first dimension of paddings must be the rank of inputs[4,2] [1,512,512] [[{{node zero_padding2d_1_1/Pad}}]]" #202

Open ArpithaFAU opened 4 years ago

ArpithaFAU commented 4 years ago

Hello I also have a similar issue, i am using my own image and i get the error below: "tensorflow.python.framework.errors_impl.InvalidArgumentError: The first dimension of paddings must be the rank of inputs[4,2] [1,512,512] [[{{node zero_padding2d_1_1/Pad}}]]"

I am giving the same size with which i trained the model for my image.

keisen commented 4 years ago

Hi, @ArpithaFAU . For reproducing the issue, could you provide a code snippet to here or Gist?

ArpithaFAU commented 4 years ago

Sorry which part of the code do you need?? And does this not work on all types of images because i am using my own.