Skip to content

Commit 7490f03

Browse files
Fixed small bug of adding an extra (full img) bounding box
1 parent 53989b6 commit 7490f03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sam_inference.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ const char *SAM::TensorProcess(clock_t &starttime_1, const cv::Mat &iImg,
223223

224224
std::vector<cv::Rect> boundingBoxes;
225225
boundingBoxes.push_back(bbox);
226-
#else
227-
result.boxes.push_back(cv::Rect(0, 0, iImg.cols, iImg.rows));
226+
228227
#endif // ROI
229228

230229
#ifdef benchmark

0 commit comments

Comments
 (0)