sidl icon indicating copy to clipboard operation
sidl copied to clipboard

ValueError: Dimensions must be equal, but are 32768 and 25088 for ‘MatMul’ (op: ‘MatMul’) with input shapes: [16,32768], [25088,4096]

Open rezacsedu opened this issue 6 years ago • 1 comments

Hi,

I encounter this error: ValueError: Dimensions must be equal, but are 32768 and 25088 for ‘MatMul’ (op: ‘MatMul’) with input shapes: [16,32768], [25088,4096]

How could I solve that? Any idea?

rezacsedu avatar Oct 03 '18 19:10 rezacsedu

Hello, I got the same error and then I realize that it is about image width and image height. Your image width and image height are 256, but in vggnet16 model they are define as 224. You can change your image width and height as 224 or you can change width and height size from 224 to 256 which is define in vggnet16.py . So they should be the same size.

figenonun avatar Oct 25 '18 05:10 figenonun