Open gWOLF3 opened 4 years ago
attempt at "hacking it together".
in order to get passed this issue, i manually started playing with resolving the minor differences in format.
after a quick file manipulation on the prototext, I can get to a different error, which appears to be caused by the batch norm layer. we see a null length array causing an error. looking into the code, im not sure where 'mean' is meant to be defined before...
@ batchnorm.java:
float scaleFactor = scale == 0 ? 0 : 1.f / scale;
for (int i = 0; i < mean.length; i++) {
mean[i] *= scaleFactor;
variance[i] *= scaleFactor;
}
(e):
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.rscnn.layers.BatchNorm.setup(BatchNorm.java:56)
at com.rscnn.network.LayerGraph.init(LayerGraph.java:298)
what happened?
received error while trying to use the "catNotDog" classifier model provided.
error:
take special note here:
why:
the core_ml generated prototext file is slightly different semantically than the expected.
in core_ml prototext:
in expected prototext:
I also attached the files for further inspection. This breaks at the layer parser, but there may be further incompatibility errors beyond this.