tryolabs / luminoth

Deep Learning toolkit for Computer Vision.

Home Page:https://tryolabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Height and Width Reversed in crop_and_resize

leland-hepworth opened this issue · comments

On the following lines, a list containing two times the pooled width and two times the pooled height (in that order) is provided to tf.image.crop_and_resize:

crops = tf.image.crop_and_resize(
conv_feature_map, bboxes, batch_ids,
[self._pooled_width * 2, self._pooled_height * 2], name="crops"
)

However, in the crop_and_resize documentation it states that crop_size should have height first and then width.