Skip to content

CoreML conversion fails: "ValueError: Only channel and sequence concatenation are supported." #1

@galli-leo

Description

@galli-leo

Hi,

First of all, thanks for going through all the hassle of converting the model to keras so I don't have to :)

I tried to do the keras to coreml conversion, but it fails with the following error:

55 : activation_14, <keras.layers.core.Activation object at 0x12fc5a350>
56 : concatenate_1, <keras.layers.merge.Concatenate object at 0x12fbee610>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 504, in convert
    predicted_probabilities_output = predicted_probabilities_output)
  File "/Library/Python/2.7/site-packages/coremltools/converters/keras/_keras2_converter.py", line 278, in _convert
    converter_func(builder, layer, input_names, output_names, keras_layer)
  File "/Library/Python/2.7/site-packages/coremltools/converters/keras/_layers2.py", line 511, in convert_merge
    mode = _get_elementwise_name_from_keras_layer(keras_layer)
  File "/Library/Python/2.7/site-packages/coremltools/converters/keras/_layers2.py", line 79, in _get_elementwise_name_from_keras_layer
    raise ValueError('Only channel and sequence concatenation are supported.')
ValueError: Only channel and sequence concatenation are supported.

Do you have an idea what I could do to fix that? Or would it be possible to send me the converted coreml model directly?

After looking through the notebook again, it seems like you changed the keras / coremltools packge. Can you share those changes / include them in the source?

Additionally, how well does the core ml model work? Did it generate the correct embeddings for the lfw images?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions