Skip to content

Error trying to convert model to CoreML #69

@raulsf6

Description

@raulsf6

Hi, first of all, thanks for you amazing.

I'm facing an error trying to convert tiny-yolo to CoreML suing the procedures explained in the repo. I manage to get the .h5 representation but when I try to export it to CoreML I get this error:

Traceback (most recent call last):
  File "coreml.py", line 17, in <module>
    coreml_model.input_description['image'] = 'Input image'
  File "/home/rsanchez/.local/share/virtualenvs/Convert-r3iBw4lK/lib/python2.7/site-packages/coremltools/models/model.py", line 79, in __setitem__
    raise AttributeError("No feature with name %s." % key)
AttributeError: No feature with name image.

Could it be due to package versions? I have a virtual Python 3 environment for the Darknet -> Keras transformation and another Python 2.7 environment for the Keras -> CoreML transformation. The only pinned version is Keras but I suppose tensorflow has to be 1.x version. Actually, my packages versions are:

  • Tensorflow 1.15.0
  • Keras 1.2.2
  • coremltools 4.0
  • Python 2.7

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