Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: 'module' object is not callable #10

Closed
sunyongke opened this issue Apr 19, 2019 · 3 comments
Closed

TypeError: 'module' object is not callable #10

sunyongke opened this issue Apr 19, 2019 · 3 comments

Comments

@sunyongke
Copy link

但我在 jupyter中运行SSD.ipynb 是出现错误,不知道如何解决。代码如下:
input_shape=(300, 300, 3)
model = SSD300(input_shape, num_classes=NUM_CLASSES)
model.load_weights('weights.04-2.13.hdf5', by_name=True)
bbox_util = BBoxUtility(NUM_CLASSES)

错误信息如下:


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('/home/syk/jupyter/SSD_keras/weights.04-2.13.hdf5', by_name=True)
4 bbox_util = BBoxUtility(NUM_CLASSES)

~/jupyter/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

@kuhung
Copy link
Owner

kuhung commented Apr 19, 2019 via email

@buaa-luzhi
Copy link

@kuhung
@sunyongke
同样的问题, keras==2.2.0, tf==1.3.0并没有解决这个问题

@kuhung
Copy link
Owner

kuhung commented Apr 23, 2019

rykov8/ssd_keras#149 (comment) 看下他这里的解决方案是否适用

@kuhung kuhung closed this as completed Apr 26, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants