8000 video tracking (dnn): TrackerVit does not initialized with given backend and target · Issue #24460 · opencv/opencv · GitHub
[go: up one dir, main page]

Skip to content
video tracking (dnn): TrackerVit does not initialized with given backend and target #24460
@fengyuentau

Description

@fengyuentau

System Information

latest opencv

Detailed description

TrackerVit::Params accepts backend and target but they are not used anywhere.

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
}

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0