I am having problem to use an image with size different than 127x127x3. For example I want to use an image of higher resolution such as 255x255x3. I tried to change width and height in config.py but I am getting following error.
Compiling testing function
Traceback (most recent call last):
File "scan_perform.pyx", line 397, in theano.scan_module.scan_perform.perform
ValueError: Shape mismatch: A.shape[1] != x.shape[0]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/compile/function_module.py", line 903, in call
self.fn() if output_subset is None else
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 963, in rval
r = p(n, [x[0] for x in i], o)
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 952, in p
self, node)
File "scan_perform.pyx", line 405, in theano.scan_module.scan_perform.perform
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/gof/link.py", line 325, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/six.py", line 692, in reraise
raise value.with_traceback(tb)
File "scan_perform.pyx", line 397, in theano.scan_module.scan_perform.perform
ValueError: Shape mismatch: A.shape[1] != x.shape[0]
Apply node that caused the error: CGemv{no_inplace}(InplaceDimShuffle{1}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{1.0})
Toposort index: 101
Inputs types: [TensorType(float32, vector), TensorType(float32, scalar), TensorType(float32, matrix), TensorType(float32, vector), TensorType(float32, scalar)]
Inputs shapes: [(1024,), (), (1024, 2304), (6400,), ()]
Inputs strides: [(4,), (), (4, 4096), (4,), ()]
Inputs values: ['not shown', array(1., dtype=float32), 'not shown', 'not shown', array(1., dtype=float32)]
Inputs type_num: [11, 11, 11, 11, 11]
Outputs clients: [[InplaceDimShuffle{x,0}(CGemv{no_inplace}.0)]]
......
some more lines of error
......
TotalSize: 204525889.0 Byte(s) 0.190 GB
TotalSize inputs: 204361897.0 Byte(s) 0.190 GB
HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
Is there anyone who used this code for image of resolution different than 127x127x3?
I am having problem to use an image with size different than 127x127x3. For example I want to use an image of higher resolution such as 255x255x3. I tried to change width and height in config.py but I am getting following error.
Compiling testing function
Traceback (most recent call last):
File "scan_perform.pyx", line 397, in theano.scan_module.scan_perform.perform
ValueError: Shape mismatch: A.shape[1] != x.shape[0]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/compile/function_module.py", line 903, in call
self.fn() if output_subset is None else
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 963, in rval
r = p(n, [x[0] for x in i], o)
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 952, in p
self, node)
File "scan_perform.pyx", line 405, in theano.scan_module.scan_perform.perform
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/theano/gof/link.py", line 325, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "/home/faz/.conda/envs/py-theano/lib/python3.6/site-packages/six.py", line 692, in reraise
raise value.with_traceback(tb)
File "scan_perform.pyx", line 397, in theano.scan_module.scan_perform.perform
ValueError: Shape mismatch: A.shape[1] != x.shape[0]
Apply node that caused the error: CGemv{no_inplace}(InplaceDimShuffle{1}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{1.0})
Toposort index: 101
Inputs types: [TensorType(float32, vector), TensorType(float32, scalar), TensorType(float32, matrix), TensorType(float32, vector), TensorType(float32, scalar)]
Inputs shapes: [(1024,), (), (1024, 2304), (6400,), ()]
Inputs strides: [(4,), (), (4, 4096), (4,), ()]
Inputs values: ['not shown', array(1., dtype=float32), 'not shown', 'not shown', array(1., dtype=float32)]
Inputs type_num: [11, 11, 11, 11, 11]
Outputs clients: [[InplaceDimShuffle{x,0}(CGemv{no_inplace}.0)]]
......
some more lines of error
......
TotalSize: 204525889.0 Byte(s) 0.190 GB
TotalSize inputs: 204361897.0 Byte(s) 0.190 GB
HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
Is there anyone who used this code for image of resolution different than 127x127x3?