Closed tomihisaw closed 6 years ago
I figured out the problem. It has to do with the "feature_maps" used by default in the model. The default sizes are larger than the image sizes in the example code. So if you remove the largest size from the features and pass it as an argument, it will work with the example:
model = keras_rcnn.models.RPN(image, classes=len(classes) + 1, feature_maps = [32, 64, 128, 256])
Hi, I am able to use the R-CNN network without issue, however I run into problems when trying to train the RPN network.
I am using example code from the comments in
_rpn.y
and python 3.6, keras 2.1.3, tensorflow 1.5.0The error occurs in _anchor_target.py here:
gt_argmax_overlaps_inds = keras.backend.argmax(reference, axis=0)
It seems the issue is with the axis=0 since if I change it to to 1, it won't at least produce the error. Beyond that I am not sure what is going on.
I also get some warnings when building the model (not sure if it is related)
Below is the full error I see during training..
And thanks for any help or insight..