It's important to keep the zeroth axis for the number of samples in the batch, or keras will have many issues. This was not the case in the current code.
Updated _anchor_target to use metadata as the input instead of using int_shape on the image. Should make things easier.
Some fixes for the RPN.
_anchor_target
to usemetadata
as the input instead of usingint_shape
on the image. Should make things easier.