Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

I got an error: 'module' object is not callable #149

Open
leikunx opened this issue Oct 12, 2018 · 3 comments
Open

I got an error: 'module' object is not callable #149

leikunx opened this issue Oct 12, 2018 · 3 comments

Comments

@leikunx
Copy link

leikunx commented Oct 12, 2018

TypeError Traceback (most recent call last)
in ()
1 input_shape=(300, 300, 3)
----> 2 model = SSD300(input_shape, num_classes=NUM_CLASSES)
3 model.load_weights('weights_SSD300.hdf5', by_name=True)
4 bbox_util = BBoxUtility(NUM_CLASSES)

~/my_ssd/ssd_keras/ssd.py in SSD300(input_shape, num_classes)
256 net['conv8_2_mbox_loc_flat'],
257 net['pool6_mbox_loc_flat']],
--> 258 mode='concat', concat_axis=1, name='mbox_loc')
259 net['mbox_conf'] = merge([net['conv4_3_norm_mbox_conf_flat'],
260 net['fc7_mbox_conf_flat'],

TypeError: 'module' object is not callable

@yutaroyamanaka
Copy link

Me too!
I want to know how to solve this problem.

@yutaroyamanaka
Copy link

I found the solution!

Keras is updated, so we should use 'from keras.layers import concatenate'
instead of 'from keras.layers import merge'

@kurianbenoy
Copy link

@yutaroyamanaka but changing import doesn't work. What exactly should we do to run the project correctly?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants