-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
video tracking (dnn): TrackerVit does not initialized with given backend and target #24460
Copy link
Copy link
Closed
Description
System Information
latest opencv
Detailed description
TrackerVit::Params accepts backend and target but they are not used anywhere.
opencv/modules/video/src/tracking/tracker_vit.cpp
Lines 24 to 36 in 1911c63
| TrackerVit::Params::Params() | |
| { | |
| net = "vitTracker.onnx"; | |
| meanvalue = Scalar{0.485, 0.456, 0.406}; | |
| stdvalue = Scalar{0.229, 0.224, 0.225}; | |
| #ifdef HAVE_OPENCV_DNN | |
| backend = dnn::DNN_BACKEND_DEFAULT; | |
| target = dnn::DNN_TARGET_CPU; | |
| #else | |
| backend = -1; // invalid value | |
| target = -1; // invalid value | |
| #endif | |
| } |
opencv/modules/video/src/tracking/tracker_vit.cpp
Lines 43 to 48 in 1911c63
| TrackerVitImpl(const TrackerVit::Params& parameters) | |
| : params(parameters) | |
| { | |
| net = dnn::readNet(params.net); | |
| CV_Assert(!net.empty()); | |
| } |
Steps to reproduce
N/A
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Reactions are currently unavailable