Skip to content

Fix typo in bounding box example#20795

Merged
tensorflow-copybara merged 1 commit intotensorflow:masterfrom
formigone:bounding-box-example-typo
Jul 17, 2018
Merged

Fix typo in bounding box example#20795
tensorflow-copybara merged 1 commit intotensorflow:masterfrom
formigone:bounding-box-example-typo

Conversation

@formigone
Copy link
Copy Markdown
Contributor

The example in the tf.image.draw_bounding_boxes documentation has a typo that makes it really confusing. The relative values for [y_min, x_min, y_max, x_max] are computed by:

y_min = y_min_px / height
y_max = y_max_px / height
x_min = x_min_px / width
x_max = x_max_px / width

Since the example doesn't explicitly describe this simple formula, the fact that the absolute pixel value for x_max is wrong can make the reader wonder if there is in fact another formula for computing x_max.

@qlzh727
Copy link
Copy Markdown
Member

qlzh727 commented Jul 17, 2018

Thanks for fixing the document.

@tensorflow-copybara tensorflow-copybara merged commit 2de246a into tensorflow:master Jul 17, 2018
tensorflow-copybara pushed a commit that referenced this pull request Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants