Skip to content

Height and Width Reversed in crop_and_resize #307

@leland-hepworth

Description

@leland-hepworth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions