Here is the bug, it is triggered on the keras.convert function:
File "convert.py", line 13
image_input_names='image')
File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 828, in convert
use_float_arraytype=use_float_arraytype,
File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 605, in _convert_to_spec
use_float_arraytype=use_float_arraytype,
File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras2_converter.py", line 361, in _convert
graph.build()
File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_topology2.py", line 703, in build
for pred in node.inbound_layers:
TypeError: 'InputLayer' object is not iterable
I am unable to convert a simple Keras MobileNetV2 model. Here is the code:
Here is the bug, it is triggered on the keras.convert function:
File "convert.py", line 13 image_input_names='image') File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 828, in convert use_float_arraytype=use_float_arraytype, File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 605, in _convert_to_spec use_float_arraytype=use_float_arraytype, File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_keras2_converter.py", line 361, in _convert graph.build() File "/Users/ludovico/Documents/Documents2.0/School/Glaucoma/code/env/lib/python3.7/site-packages/coremltools/converters/keras/_topology2.py", line 703, in build for pred in node.inbound_layers: TypeError: 'InputLayer' object is not iterable