Skip to content

Add bounding box scaling note#24884

Merged
luisquintanilla merged 11 commits intodotnet:mainfrom
luisquintanilla:issue-23774
Jul 7, 2021
Merged

Add bounding box scaling note#24884
luisquintanilla merged 11 commits intodotnet:mainfrom
luisquintanilla:issue-23774

Conversation

@luisquintanilla
Copy link
Copy Markdown
Contributor

@luisquintanilla luisquintanilla commented Jun 28, 2021

Summary

Add note on how to scale bounding box coordinates given by prediction

Fixes #23774

Preview Link

luisquintanilla and others added 5 commits June 28, 2021 11:36
Thanks

Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
@luisquintanilla
Copy link
Copy Markdown
Contributor Author

Closing and reopening

@luisquintanilla
Copy link
Copy Markdown
Contributor Author

@JakeRadMSFT @LittleLittleCloud ready for review when you get a chance. Thanks

> 1. Multiply top and bottom coordinates by the original image height, and multiply left and right coordinates by the original image width.
> 1. Divide top and bottom coordinates by 600, and divide left and right coordinates by 800.
>
> For example, given the original image dimensions,`actualImageHeight` and `actualImageWidth`, and a prediction `prediction` with bounding box coordinates, the following code snippet shows how to scale the bounding box dimensions:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where in the code would this go?

Copy link
Copy Markdown
Contributor Author

@luisquintanilla luisquintanilla Jul 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't go anywhere since users aren't doing anything with it in the tutorial. I can add to the note saying that this optional when post-processing (if they choose to do so). Or we can expand the tutorial to include drawing the bounding boxes.

Copy link
Copy Markdown
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @luisquintanilla

You can :shipit: when ready.

@luisquintanilla luisquintanilla merged commit 089c0ea into dotnet:main Jul 7, 2021
luisquintanilla added a commit that referenced this pull request Jul 7, 2021
Updating date to reflect changes from #24884
luisquintanilla added a commit that referenced this pull request Jul 8, 2021
Updating date to reflect changes from #24884
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i can't find any correlation between the coordinates obtained from the model and the actual stop sign of the example

6 participants