Open dmitrysarov opened 6 years ago
from keras_rcnn.backend.common import * import tensorflow as tf sess = tf.InteractiveSession() anc = anchor(4,[1,2],[1])
[[ 0. 0. 3. 3. ] [ 0. 0. 3. 3. ] [ 0.5 -1. 2.5 4. ] [ 0.5 -1. 2.5 4. ]]
I suppose that it should return list of two arrays.
As solution, i guess could be add to def _scale_enum(anchor, scales):
such strings
x_ctr = keras.backend.expand_dims(x_ctr, 1) y_ctr = keras.backend.expand_dims(y_ctr, 1)
from keras_rcnn.backend.common import * import tensorflow as tf sess = tf.InteractiveSession() anc = anchor(4,[1,2],[1])
I suppose that it should return list of two arrays.