FastMaskRCNN
FastMaskRCNN copied to clipboard
ROIAlign wrong??
when I run data_test.py, it went wrong as follows:
Traceback (most recent call last):
File "unit_test/data_test.py", line 48, in
Can anyone tell me why?thanks
I have a similar issue, any ideas? It's not reading the images correctly.
i'm tracking it to down slowly...
@1145520074 @stevefoy Hello! I have the same error. Did you solve it?
hey tjussh,
I just fixed it this way,
boxes = tf.constant(boxes, tf.float32) batch_inds = np.zeros((4,), dtype=np.int32) batch_inds = tf.convert_to_tensor(batch_inds) feat = ROIAlign(image, boxes, batch_inds , 16, 7, 7)
but the this is not a testing the trained network, I'm finding it slow to write the code to actually test the trained network
I got this error because I incorrectly uncommented parts from the second crop method, instead of the first crop method.
Enabled the below code & it runs fine L.No 34 to 38 of /FastMaskRCNN/libs/layers/crop.py
if batch_inds is False: num_boxes = tf.shape(boxes)[0] batch_inds = tf.zeros([num_boxes], dtype=tf.int32, name='batch_inds') batch_inds = boxes[:, 0] * 0 batch_inds = tf.cast(batch_inds, tf.int32)