tryolabs / luminoth

Deep Learning toolkit for Computer Vision.
https://tryolabs.com
BSD 3-Clause "New" or "Revised" License
2.4k stars 401 forks source link

Height and Width Reversed in crop_and_resize #307

Open leland-hepworth opened 3 years ago

leland-hepworth commented 3 years ago

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:

https://github.com/tryolabs/luminoth/blob/9109d8b98bcbb0ad4e8e0c928da0b20627fa774f/luminoth/models/fasterrcnn/roi_pool.py#L75-L78

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