Skip to content

video: fix vittrack in the case where crop size grows until out-of-memory when the input is black#25771

Merged
asmorkalov merged 4 commits intoopencv:4.xfrom
fengyuentau:vittrack_black_input
Jun 18, 2024
Merged

video: fix vittrack in the case where crop size grows until out-of-memory when the input is black#25771
asmorkalov merged 4 commits intoopencv:4.xfrom
fengyuentau:vittrack_black_input

Conversation

@fengyuentau
Copy link
Copy Markdown
Member

Fixes #25760

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov
Copy link
Copy Markdown
Contributor

C:\build\precommit_windows64\4.x\opencv\modules\video\src\tracking\tracker_vit.cpp(106): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [C:\build\precommit_windows64\build\modules\video\opencv_video.vcxproj]
C:\build\precommit_windows64\4.x\opencv\modules\video\src\tracking\tracker_vit.cpp(107): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [C:\build\precommit_windows64\build\modules\video\opencv_video.vcxproj]

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov
Copy link
Copy Markdown
Contributor

 [----------] 1 test from vittrack
[ RUN      ] vittrack.accuracy_vittrack
Unmatched IOU:  expect IOU val (0.642462) > the IOU threadhold (0.65)! Box 0 is [58 x 108 from (329, 88)], and Box 1 is [78 x 125 from (311, 83)]
/home/ci/opencv/modules/video/test/test_trackers.cpp:110: Failure
Value of: checkIOU(roi, targetRois[i], iouThreshold)
  Actual: false
Expected: true
Fail at img 4.
[  FAILED  ] vittrack.accuracy_vittrack (95 ms)

@asmorkalov asmorkalov self-requested a review June 18, 2024 07:15
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov
Copy link
Copy Markdown
Contributor

Tested manually with Ubuntu 20.04.

@asmorkalov asmorkalov merged commit e3884a9 into opencv:4.x Jun 18, 2024
@asmorkalov asmorkalov self-assigned this Jun 18, 2024
@fengyuentau fengyuentau deleted the vittrack_black_input branch June 19, 2024 05:21
@asmorkalov asmorkalov mentioned this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dnn/video: TrackerVit crashes when target is lost

2 participants