Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SanitizeBoundingBox()(img, bbox) converts bbox to a Tensor #7878

Closed
NicolasHug opened this issue Aug 24, 2023 · 0 comments · Fixed by #7880
Closed

SanitizeBoundingBox()(img, bbox) converts bbox to a Tensor #7878

NicolasHug opened this issue Aug 24, 2023 · 0 comments · Fixed by #7880

Comments

@NicolasHug
Copy link
Member

Just opening for ref. Will fix soon

    img = make_image()
    boxes = make_bounding_boxes()

    t = transforms.SanitizeBoundingBoxes()
    out_img, out_boxes = t(img, boxes)
    print(type(out_boxes))

Bboxes is a Tensor because SanitizeBBoxes confuses it with the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant