Convert caffe model with PReLU layer

I've been trying to convert caffe model with PReLU activation function and getting the following error:

RuntimeError: Caffe model error in layer 'relu1a' of type 'PReLU': Expected a scalar parameter (alpha) when 'channel_shared' flag is set.

channel_shared is set to false.

Same error, this made me change PReLU on ReLU.

Hi Alex, Mikhail,


Sorry to hear that you are having issues with the PReLU layer. We have identified the issue and fixed it. The fix will be a part of the next coremltools package release (after 0.4.0).

Thank you for the patience.

Convert caffe model with PReLU layer
 
 
Q