Closed seantempesta closed 6 years ago
You can't work around it, unless it is the first or last layer in the network (in which case you need to remove it and provide the layer's functionality in Swift). Core ML does not support lambda layers.
It appears to be the last layer. Any chance you can explain what it's doing and I can try to write the last layer in swift?
@seantempesta take a look into my demo https://www.youtube.com/watch?v=p3-3kN_fIz0 I was using FullYolo v2 and the thing I did for working around is remove the reorg in yolo.cfg and retrained your model.
Removing the 'reorg' layer did the trick. Thanks @oishi89!
After running swiftenv install, curl error happens.
curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
This is the full error:
It appears that the YAD2K conversion between Darknet and Keras adds a Lambda layer, which is unsupported in Apple's
coremltools
. How did you work around this?The lambda layer seems to be added here (yad2k.py):