MMdnn: AttributeError: module 'keras.applications.mobilenet' has no attribute 'relu6'
Platform (like ubuntu 16.04/win10): macOS 10.13.5
Python version: 3.6
Source framework with version (like Tensorflow 1.4.1 with GPU): Tensorflow 1.8
Destination framework with version (like CNTK 2.3 with GPU): toIR
Pre-trained model path (webpath or webdisk path): ./version0056.h5
Running scripts: python -m mmdnn.conversion._script.convertToIR -f keras -d connect4_mobilenet -w version0056.h5
I have created a keras model using the example found here: https://github.com/AppliedDataSciencePartners/DeepReinforcementLearning
My ultimate goal is to try and import this into coreML to test with an iOS app. When I first try to convert to IR in order to convert to coreML I get the following issue:
Using TensorFlow backend.
Traceback (most recent call last):
File "/anaconda3/bin/mmconvert", line 11, in <module>
sys.exit(_main())
File "/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/_script/convert.py", line 102, in _main
ret = convertToIR._convert(ir_args)
File "/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/_script/convertToIR.py", line 39, in _convert
parser = Keras2Parser(model)
File "/anaconda3/lib/python3.6/site-packages/mmdnn/conversion/keras/keras2_parser.py", line 94, in __init__
'relu6': _keras.applications.mobilenet.relu6,
AttributeError: module 'keras.applications.mobilenet' has no attribute 'relu6'
Seems like perhaps relu6 is not supported or something like that? Sorry new to this and trying to teach myself how this all fits together!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 19 (3 by maintainers)
Commits related to this issue
- #268 lacks `tanh` emitter add tanh emitter — committed to microsoft/MMdnn by JiahaoYao 6 years ago
So, you pip install like this?
Hi @pkl728, Do you use the latest MMdnn?