Comments (8)
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.
This app only supports Tiny YOLO, not the full
one.
from yolo-coreml-mpsnngraph.
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.
So then could we get an update to the full one?
from yolo-coreml-mpsnngraph.
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.
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.
Hi, I just solve this problem.
Use keras==2.0.6 can convert model successfully.
from yolo-coreml-mpsnngraph.
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)
- Why is the feature set 255x13x13 ? HOT 3
- Unable to desearilize object Validation error HOT 2
- it delays HOT 1
- Performance HOT 9
- scaleFit instead of scaleFill HOT 1
- TypeError: __init__() got an unexpected keyword argument 'dtype' HOT 3
- Performance decrease HOT 4
- UIview and adding shapes HOT 3
- error when run " python coreml.py" HOT 5
- Shape of the converted model is wrong HOT 11
- Speed on A11 vs A12 HOT 1
- AttributeError: module 'tensorflow' has no attribute 'concat_v2' HOT 1
- MLMultiArray datatype Flot32 issue HOT 9
- __init__() got an unexpected keyword argument 'dtype' HOT 1
- Converting this repo to support Yolov5 HOT 1
- Error trying to convert model to CoreML HOT 4
- Error converting from h5 to Core ML HOT 1
- Cannot find 'YOLOv3' in scope HOT 1
- assert(features[0].count == 255 * 13 * 13) crash HOT 1
- Get multiple outputs from MPSNNGraph HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolo-coreml-mpsnngraph.