Skip to content

Conversation

varunagrawal
Copy link
Contributor

@varunagrawal varunagrawal commented May 22, 2019

Updated nms_cuda signature to accept detections and scores as separate tensors. This makes the function signature consistent as well as avoids making temporary tensors and wasting memory as a result.
This required updating the indexing in the NMS CUDA kernel.

Also made the iou_threshold parameter name consistent across implementations.

Updated nms_cuda signature to accept detections and scores as separate tensors.
This also required updating the indexing in the NMS CUDA kernel.

Also made the iou_threshold parameter name consistent across implementations.
@varunagrawal
Copy link
Contributor Author

@fmassa this is the PR that I mentioned as part of the review of #826

@codecov-io
Copy link

codecov-io commented May 22, 2019

Codecov Report

Merging #945 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #945      +/-   ##
==========================================
+ Coverage   60.13%   60.15%   +0.01%     
==========================================
  Files          63       63              
  Lines        5019     5019              
  Branches      748      748              
==========================================
+ Hits         3018     3019       +1     
+ Misses       1797     1796       -1     
  Partials      204      204
Impacted Files Coverage Δ
torchvision/transforms/transforms.py 81.89% <0%> (-0.65%) ⬇️
torchvision/transforms/functional.py 71.12% <0%> (+1.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3cb86f...05ca439. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot!

@fmassa fmassa merged commit 249cfbf into pytorch:master May 23, 2019
@varunagrawal varunagrawal deleted the nms-reduce-memory-footprint branch January 22, 2024 15:41
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 this pull request may close these issues.

3 participants