Skip to content

Commit

Permalink
fix: bbox clamping in torch inference
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Jan 28, 2022
1 parent 02872eb commit 2d6efd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/torch/torchlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ namespace dd
bbox[2]
= std::min(static_cast<double>(cols - 1), bbox[2]);
bbox[3]
= std::min(static_cast<double>(cols - 1), bbox[3]);
= std::min(static_cast<double>(rows - 1), bbox[3]);

APIData ad_bbox;
ad_bbox.add("xmin", bbox[0]);
Expand Down

0 comments on commit 2d6efd3

Please sign in to comment.