Giter VIP home page Giter VIP logo

Comments (8)

oishi89 avatar oishi89 commented on May 31, 2024

I read and found out something in the closed issues. It seems to be "the full YOLO model contains a type of layer that is currently not supported by Core ML."
I was using yolo-voc.2.0.cfg for training so do you think I would had used yolo-voc.cfg (YOLO V1) instead ?

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 31, 2024

This app only supports Tiny YOLO, not the full
one.

from yolo-coreml-mpsnngraph.

oishi89 avatar oishi89 commented on May 31, 2024

I retrained all of my data using tiny-yolo-voc.cfg so the convert was working but after converting to Keras my model was unable to recognize any object despite it had worked properly in Darknet. Do you have any idea ?

from yolo-coreml-mpsnngraph.

cro888888 avatar cro888888 commented on May 31, 2024

So then could we get an update to the full one?

from yolo-coreml-mpsnngraph.

hollance avatar hollance commented on May 31, 2024

I don't see the point in supporting the full YOLO on mobile as it will be very slow. Better to use something like the new MobileNetV2 with SSDLite.

from yolo-coreml-mpsnngraph.

Shelro avatar Shelro commented on May 31, 2024

I got same error when I convert my model. I use yolov2-tiny-voc to do this step.

Traceback (most recent call last):
File "coreml.py", line 11, in
image_scale=1/255.)
File "/Users/coreml-ios/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 745, in convert
custom_conversion_functions=custom_conversion_functions)
File "/Users/coreml-ios/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 525, in convertToSpec
custom_objects=custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.py", line 161, in _convert
model = _keras.models.load_model(model, custom_objects = custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/models.py", line 142, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/models.py", line 193, in model_from_config
return layer_from_config(config, custom_objects=custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 40, in layer_from_config
custom_objects=custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/engine/topology.py", line 2582, in from_config
process_layer(layer_data)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/engine/topology.py", line 2560, in process_layer
custom_objects=custom_objects)
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 42, in layer_from_config
return layer_class.from_config(config['config'])
File "/Users/coreml-ios/lib/python2.7/site-packages/keras/engine/topology.py", line 1025, in from_config
return cls(**config)
TypeError: init() got an unexpected keyword argument 'dtype'

I use the same weights in Forge and NNGraph, both success. Just fail in coreML.

from yolo-coreml-mpsnngraph.

Shelro avatar Shelro commented on May 31, 2024

Hi, I just solve this problem.
Use keras==2.0.6 can convert model successfully.

from yolo-coreml-mpsnngraph.

yunchang1986 avatar yunchang1986 commented on May 31, 2024

I use keras==2.0.6, it works. Higher version such as 2.2.0 is not working.
BTW, I use anaconda and run on macOS

from yolo-coreml-mpsnngraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.