hpc203 / bytetrack-opencv-onnxruntime Goto Github PK
View Code? Open in Web Editor NEW分别使用OpenCV、ONNXRuntime部署YOLOX+ByteTrack目标跟踪,包含C++和Python两个版本的程序
分别使用OpenCV、ONNXRuntime部署YOLOX+ByteTrack目标跟踪,包含C++和Python两个版本的程序
我在c++的实际使用中想要重置一下序号,让它回到0重新开始计数,请问改怎么修改
您好,首先感谢你的分享。
utils.cpp文件的BYTETracker::iou_distance()函数中。
在IOU匹配之前,要取轨迹预测的位置用来和当前detection进行匹配。
但是我看了一下代码流程,
atlbrs.push_back(atracks[i]->tlbr);
atracks[i]->tlbr的值不是predict之后的值吧?我看了下,好像没更新。
我想问下,这个地方我理解的是不是有问题。
the code in bytetrack-opencv-onnxruntime/onnxruntime/cpp/src/BYTETracker.cpp script
if (track->score < this->high_thresh)
continue;
low score dets in the first frame will not use. is it right?
if so, is it necessary to Add a restriction, such as track->frame_id
Maybe I misunderstood it. Hope your reply.
have a nice day.
up主你好,我看到你代码里有几行不是特别明白,yolox::yolox()
string model_path = "/home/ByteTrack/byte_tracker/model/bytetrack_s.onnx";
为啥YOLOx的构造函数里面读取的是bytetrack_s.onnx的模型?其实我可以理解为是对跟踪模型的读取,请问放在这里面有特别的含义么?
您好! 使用您的代码和提供的onnx文件会提示读取错误: 主要是slice问题,该怎么解决呢?
Node [Slice]:(467) parse error: OpenCV(4.5.1)
While using ByteTrack as a tracker, the visualized bounding boxes sometimes do not precisely match the detection results. Are there any methods to assign tracking IDs to detections without altering the bounding box coordinates? I am asking this question because the tracking bounding boxes are sometimes too wide for my specific case.
[ERROR:0] global /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp (1788) handleNode DNN/ONNX: ERROR during processing node with 5 inputs and 1 outputs: [Slice]:(467)
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1797: error: (-2:Unspecified error) in function 'handleNode'
Node [Slice]:(467) parse error: OpenCV(4.5.0) /home/opencv/modules/dnn/src/onnx/onnx_importer.cpp:697: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20200908::ONNXImporter::handleNode(const opencv_onnx::NodeProto&)'
Slice layer only supports steps = 1 (expected: 'countNonZero(step_blob != 1) == 0'), where
'countNonZero(step_blob != 1)' is 1
must be equal to
'0' is 0
Hello, I have encountered the above problems and hope to get your help. Thanks!
非常出色的bytetrack的cpu部署版本。感谢您的分享。已经在C++下成功使用ONNXRuntime部署ByteTrack。
但是关于opencv的部署在模型载入,即readnet时出现了问题
opencv版本为4.5,出现bug如下
Total frames: 1625, fps: 29
start load model
[ERROR:0] global /home/chiye/software/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp (1786) handleNode DNN/ONNX: ERROR during processing node with 5 inputs and 1 outputs: [Slice]:(467)
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/chiye/software/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:1797: error: (-2:Unspecified error) in function 'handleNode'
> Node [Slice]:(467) parse error: OpenCV(4.5.0) /home/chiye/software/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:697: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20200908::ONNXImporter::handleNode(const opencv_onnx::NodeProto&)'
> > Slice layer only supports steps = 1 (expected: 'countNonZero(step_blob != 1) == 0'), where
> > 'countNonZero(step_blob != 1)' is 1
> > must be equal to
> > '0' is 0
>
Aborted (core dumped)
请问这是哪里出现了问题?期待您的早日回复
Total frames: 1625, fps: 29
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.2.0) /home/dk/opencv/modules/dnn/src/onnx/onnx_importer.cpp:101: error: (-211:One of the arguments' values is out of range) Input is out of OpenCV 32S range in function 'convertInt64ToInt32'
I have encountered the above problems and hope to get your help.
多类别的请问有相应的工程嘛
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.