Skip to content

Vectorize box decoding in FCOS model #5247

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

Closed
jdsgomes opened this issue Jan 21, 2022 · 2 comments · Fixed by #6203
Closed

Vectorize box decoding in FCOS model #5247

jdsgomes opened this issue Jan 21, 2022 · 2 comments · Fixed by #6203
Labels
help wanted module: models Perf For performance improvements

Comments

@jdsgomes
Copy link
Contributor

🚀 The feature

The for loop in torchvision/models/detection/fcos.py:80 can probably be vetorized.

        pred_boxes = [
            self.box_coder.decode_single(bbox_regression_per_image, anchors_per_image)
            for anchors_per_image, bbox_regression_per_image in zip(anchors, bbox_regression)
        ]

Motivation, pitch

Simplify/speedup the execution

Alternatives

No response

Additional context

No response

@datumbox datumbox added help wanted module: models Perf For performance improvements labels Jan 21, 2022
@abhi-glitchhg
Copy link
Contributor

Can I try this?

@datumbox
Copy link
Contributor

@abhi-glitchhg absolutely! Thanks for offering to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted module: models Perf For performance improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants