nyoki-mtl/keras-facenet

using coreml model

sam199488 opened this issue · 1 comments

i got this error while trying to test the corml model :

"[coreml] A Core ML custom neural network layer requires an implementation named 'scaling' which was not found in the global namespace."
and
"[coreml] Error creating Core ML custom layer implementation from factory for layer "scaling"."

@sam199488

I confirmed that coremltools can convert the model but I did not make an iOS application because I don't have a Mac.
I think you need to make a class called 'scaling' in Swift.
'scaling' is just a function of multiplication defined on on the code below.

def scaling(x, scale):
return x * scale

Please refer to the link below.
http://machinethink.net/blog/coreml-custom-layers/#putting-the-model-into-the-app