deformable_convnet icon indicating copy to clipboard operation
deformable_convnet copied to clipboard

question about the input with unknown size.

Open wensihan opened this issue 5 years ago • 2 comments

Hello, if I set the input image as [1, None, None, 3] instead of [-1,28,28,1], there will come out to the following bugs:

offset_map = tf.reshape(offset_map, [batch, i_h, i_w, f_h, f_w, 2]) TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [1, None, None, 5, 5, 2]. Consider casting elements to a supported type.

Do you have any advice? Looking to your reply.

wensihan avatar Jan 28 '19 05:01 wensihan

My code doesn't support [1, None, None, 3] shape, since I get the shape of tensor like 'a, b, c, d = tensor.shape' if shape of 'tensor' contains 'None', my code makes an error. Try with specified shape.

maestrojeong avatar Jan 28 '19 05:01 maestrojeong

@wensihan Hey, were you able to apply deformable conv in keras successfully? I am trying to this in an object detection task from last few days and facing error due to None shape(which is quite common). Please let me know if you found any solution to this issue. Thanks and regards, Ritu Yadav

RituYadav92 avatar Dec 10 '19 15:12 RituYadav92