Running Command:
python cub_demo.py ResNet50 /home/dell/Videos/Object_Tracking/attribute-aware-atte
ntion/dataset/CUB_200_2011
Requirements:
- pip install keras==1.2.1
- pip install theano
added additionally, for backend set as 'theano'
import os
os.environ['KERAS_BACKEND'] = 'theano'
Error 1: ImportError: cannot import name inplace_increment
Deleting the cache manually worked.
rm -rf ~/.theano
Error 2: AttributeError: 'module' object has no attribute 'ifelse'
Your version of theano is probably too new for that version of Keras. You should try downgrading theano to 0.9.x,
pip install theano==0.9.0
Error 3: ValueError: Negative dimension size caused by subtracting 3 from 2 for 'MaxPool' (op: 'MaxPool') with input shapes: [?,2,2240,64].
i followed @iamhankai sir suggestion . changed "image_data_format" to "channels_first".
sudo gedit $HOME/.keras/keras.json
{
"floatx": "float32",
"epsilon": 1e-07,
"backend": "tensorflow",
"image_data_format": "channels_first"
}.
Error 4: ValueError: total size of new array must be unchanged
Traceback (most recent call last):
File "cub_demo.py", line 102, in <module>
share_fea_map = Reshape((final_dim, L), name='reshape_layer')(share_fea_map)
File "/home/dell/Videos/Object_Tracking/env_a3m/local/lib/python2.7/site-packages/keras/engine/topology.py", line 572, in __call__
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "/home/dell/Videos/Object_Tracking/env_a3m/local/lib/python2.7/site-packages/keras/engine/topology.py", line 635, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "/home/dell/Videos/Object_Tracking/env_a3m/local/lib/python2.7/site-packages/keras/engine/topology.py", line 170, in create_node
output_shapes = to_list(outbound_layer.get_output_shape_for(input_shapes[0]))
File "/home/dell/Videos/Object_Tracking/env_a3m/local/lib/python2.7/site-packages/keras/layers/core.py", line 373, in get_output_shape_for
self.target_shape)
File "/home/dell/Videos/Object_Tracking/env_a3m/local/lib/python2.7/site-packages/keras/layers/core.py", line 367, in _fix_unknown_dimension
raise ValueError(msg)
ValueError: total size of new array must be unchanged
I saw @iamhankai suggestion for this issue. but not understand clearly. I have few doubts, please help me @iamhankai @Muneeb699 sir. it is my request.
The input image size is 448448, not 224224.
- here mentioned input image size/shape, exactly what are the width and height?
- where I need to change the code?
- either dataset/CUB_200_2011/images, all images need to resize?
Please guide me to solve this issue @iamhankai, sir.
Thanks and Regards
Murugan Rajenthiran
Running Command:
Requirements:
added additionally, for backend set as 'theano'
Error 1: ImportError: cannot import name inplace_increment
Deleting the cache manually worked.
rm -rf ~/.theano
Error 2: AttributeError: 'module' object has no attribute 'ifelse'
Your version of theano is probably too new for that version of Keras. You should try downgrading theano to 0.9.x,
pip install theano==0.9.0
Error 3: ValueError: Negative dimension size caused by subtracting 3 from 2 for 'MaxPool' (op: 'MaxPool') with input shapes: [?,2,2240,64].
i followed @iamhankai sir suggestion . changed "image_data_format" to "channels_first".
sudo gedit $HOME/.keras/keras.json
Error 4: ValueError: total size of new array must be unchanged
I saw @iamhankai suggestion for this issue. but not understand clearly. I have few doubts, please help me @iamhankai @Muneeb699 sir. it is my request.
Please guide me to solve this issue @iamhankai, sir.
Thanks and Regards
Murugan Rajenthiran