3 Replies
      Latest reply on Sep 5, 2019 11:30 PM by Tallmiin
      sicyx Level 1 Level 1 (0 points)

        Hi,

         

        I'm using coremltools 0.6.3, tensorflow 1.3.0, keras 2.0.8 and I keep running into this error:

         

        coremlconverter.py

         

        import coremltools

        coreml_model = coremltools.converters.keras.convert('tinyYolov3.h5')

        coreml_model.save('tankYOLO.mlmodel')

         

         

        python ../coremlconverter.py

        Using TensorFlow backend.

        Traceback (most recent call last):

             File "../coremlconverter.py", line 6, in <module> coreml_model = coremltools.converters.keras.convert('tinyYolov3.h5')

        AttributeError: 'module' object has no attribute 'convert'

         

        I've tried version 2.0.2, 2.0.4, 2.0.6, 2.0.7 of keras but nothing seems to work. There is very little information out there and I haven't been able to find anything in days of searching. I'm hoping someone here, or folks from Apple will be able to point me in the right direction.

         

        Thank you!