Skip to content

Conversation

NicolasHug
Copy link
Member

This PR is based on #3820 and on #3824 (their changes are included in this PR), which should be merged first.

This PR lets draw_bounding_box natively support float images in [0, 1] which avoids keeping the uint8 images around

@NicolasHug NicolasHug changed the title WIP allow float images in draw_bounding_box Allow float images in draw_bounding_box May 13, 2021


dog1_int = read_image(str(Path('assets') / 'dog1.jpg'))
dog1 = convert_image_dtype(dog1_int, dtype=torch.float)
Copy link
Member Author

Choose a reason for hiding this comment

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

We still need the int images for make_grid but quite frankly I'm tempted to remove make_grid from this example

@NicolasHug NicolasHug closed this May 17, 2021
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.

2 participants