when I run it error show as below:
(base) XudeMacBook-Pro-2:HGR-Net-master xuwenfeng$ ./train.sh
Using TensorFlow backend.
Found 13274 images belonging to 3 classes.
Found 13274 images belonging to 3 classes.
2019-06-01 10:37:09.912785: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-06-01 10:37:09.916745: I tensorflow/core/common_runtime/process_util.cc:69] Creating new thread pool with default inter op setting: 4. Tune using inter_op_parallelism_threads for best performance.
/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py:37: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(8, (3, 3), padding="same")
x = Conv2D(b_filter,3,3,border_mode='same')(x)
Traceback (most recent call last):
File "train.py", line 91, in
train(opt)
File "train.py", line 51, in train
RecM=RecModel(input_size,opt.num_class)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Rec_model.py", line 17, in init
self._build_model()
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Rec_model.py", line 20, in _build_model
SegM=SegModel(self.input_size)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 18, in init
self._build_model()
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 84, in _build_model
i = self.Res_Group(32,3,1)(i)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 53, in Res_unit
x = self.ResidualNet(nfilter,_stride)(x)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 44, in Res_unit
out = merge([ident_map,x],mode='sum')
TypeError: 'module' object is not callable
when I run it error show as below:
(base) XudeMacBook-Pro-2:HGR-Net-master xuwenfeng$ ./train.sh
Using TensorFlow backend.
Found 13274 images belonging to 3 classes.
Found 13274 images belonging to 3 classes.
2019-06-01 10:37:09.912785: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-06-01 10:37:09.916745: I tensorflow/core/common_runtime/process_util.cc:69] Creating new thread pool with default inter op setting: 4. Tune using inter_op_parallelism_threads for best performance.
/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py:37: UserWarning: Update your
Conv2Dcall to the Keras 2 API:Conv2D(8, (3, 3), padding="same")x = Conv2D(b_filter,3,3,border_mode='same')(x)
Traceback (most recent call last):
File "train.py", line 91, in
train(opt)
File "train.py", line 51, in train
RecM=RecModel(input_size,opt.num_class)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Rec_model.py", line 17, in init
self._build_model()
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Rec_model.py", line 20, in _build_model
SegM=SegModel(self.input_size)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 18, in init
self._build_model()
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 84, in _build_model
i = self.Res_Group(32,3,1)(i)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 53, in Res_unit
x = self.ResidualNet(nfilter,_stride)(x)
File "/Users/xuwenfeng/Downloads/HGR-Net-master/Segmentation/Seg_Model.py", line 44, in Res_unit
out = merge([ident_map,x],mode='sum')
TypeError: 'module' object is not callable