-
Notifications
You must be signed in to change notification settings - Fork 72
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
Comments
检查一下版本,有可能是 keras 和 tf 的版本问题
发自我的 iPhone
… 在 2019年4月19日,上午8:57,sunyongke ***@***.***> 写道:
但我在 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@kuhung |
rykov8/ssd_keras#149 (comment) 看下他这里的解决方案是否适用 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
但我在 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
The text was updated successfully, but these errors were encountered: