Ning-Ding / Implementation-CVPR2015-CNN-for-ReID

Implementation for CVPR 2015 Paper: "An Improved Deep Learning Architecture for Person Re-Identification".
MIT License
147 stars 71 forks source link

problem in Market 1501 #43

Open seuzxy opened 5 years ago

seuzxy commented 5 years ago

Hello, Author. I have this problem in Market 1501. import tensorflow as tf tf.python.control_flow_ops = tf

When I corrected this mistake in my own way, the following problems arose: now begin to compile the model with the difference between ones and neighbour matrixs. /home/omnisky/zy/market1501/model_for_market1501.py:95: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(20, (5, 5), kernel_regularizer=<keras.reg..., data_format="channels_last") share = Convolution2D(20,5,5,dim_ordering='tf', W_regularizer=l2(l=weight_decay)) /home/omnisky/zy/market1501/model_for_market1501.py:100: UserWarning: Update your MaxPooling2D call to the Keras 2 API: MaxPooling2D(data_format="channels_last") a4 = MaxPooling2D(dim_ordering='tf')(a3) /home/omnisky/zy/market1501/model_for_market1501.py:101: UserWarning: Update your MaxPooling2D call to the Keras 2 API: MaxPooling2D(data_format="channels_last") b4 = MaxPooling2D(dim_ordering='tf')(b3) /home/omnisky/zy/market1501/model_for_market1501.py:102: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(25, (5, 5), kernel_regularizer=<keras.reg..., data_format="channels_last") share2 = Convolution2D(25,5,5,dim_ordering='tf', W_regularizer=l2(l=weight_decay)) /home/omnisky/zy/market1501/model_for_market1501.py:107: UserWarning: Update your MaxPooling2D call to the Keras 2 API: MaxPooling2D(data_format="channels_last") a7 = MaxPooling2D(dim_ordering='tf')(a6) /home/omnisky/zy/market1501/model_for_market1501.py:108: UserWarning: Update your MaxPooling2D call to the Keras 2 API: MaxPooling2D(data_format="channels_last") b7 = MaxPooling2D(dim_ordering='tf')(b6) Traceback (most recent call last): File "/home/omnisky/zy/market1501/model_for_market1501.py", line 393, in model = model_def() File "/home/omnisky/zy/market1501/model_for_market1501.py", line 109, in model_def a8 = merge([a7,b7],mode=cross_input_asym,output_shape=cross_input_shape) TypeError: 'module' object is not callable

Look forward to your reply