mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
70d7e83dca
VIT track(gsoc realtime object tracking model) #24201 Vit tracker(vision transformer tracker) is a much better model for real-time object tracking. Vit tracker can achieve speeds exceeding nanotrack by 20% in single-threaded mode with ARM chip, and the advantage becomes even more pronounced in multi-threaded mode. In addition, on the dataset, vit tracker demonstrates better performance compared to nanotrack. Moreover, vit trackerprovides confidence values during the tracking process, which can be used to determine if the tracking is currently lost. opencv_zoo: https://github.com/opencv/opencv_zoo/pull/194 opencv_extra: [https://github.com/opencv/opencv_extra/pull/1088](https://github.com/opencv/opencv_extra/pull/1088) # Performance comparison is as follows: NOTE: The speed below is tested by **onnxruntime** because opencv has poor support for the transformer architecture for now. ONNX speed test on ARM platform(apple M2)(ms): | thread nums | 1| 2| 3| 4| |--------|--------|--------|--------|--------| | nanotrack| 5.25| 4.86| 4.72| 4.49| | vit tracker| 4.18| 2.41| 1.97| **1.46 (3X)**| ONNX speed test on x86 platform(intel i3 10105)(ms): | thread nums | 1| 2| 3| 4| |--------|--------|--------|--------|--------| | nanotrack|3.20|2.75|2.46|2.55| | vit tracker|3.84|2.37|2.10|2.01| opencv speed test on x86 platform(intel i3 10105)(ms): | thread nums | 1| 2| 3| 4| |--------|--------|--------|--------|--------| | vit tracker|31.3|31.4|31.4|31.4| preformance test on lasot dataset(AUC is the most important data. Higher AUC means better tracker): |LASOT | AUC| P| Pnorm| |--------|--------|--------|--------| | nanotrack| 46.8| 45.0| 43.3| | vit tracker| 48.6| 44.8| 54.7| [https://youtu.be/MJiPnu1ZQRI](https://youtu.be/MJiPnu1ZQRI) In target tracking tasks, the score is an important indicator that can indicate whether the current target is lost. In the video, vit tracker can track the target and display the current score in the upper left corner of the video. When the target is lost, the score drops significantly. While nanotrack will only return 0.9 score in any situation, so that we cannot determine whether the target is lost. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [x] 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 |
||
---|---|---|
.. | ||
tutorial_code | ||
_coverage.py | ||
_doc.py | ||
_run_winpack_demo.cmd | ||
.gitignore | ||
aruco_detect_board_charuco.py | ||
asift.py | ||
audio_spectrogram.py | ||
browse.py | ||
calibrate.py | ||
camera_calibration_show_extrinsics.py | ||
camshift.py | ||
CMakeLists.txt | ||
coherence.py | ||
color_histogram.py | ||
common.py | ||
contours.py | ||
deconvolution.py | ||
demo.py | ||
dft.py | ||
digits_adjust.py | ||
digits_video.py | ||
digits.py | ||
dis_opt_flow.py | ||
distrans.py | ||
drawing.py | ||
edge.py | ||
essential_mat_reconstr.py | ||
facedetect.py | ||
feature_homography.py | ||
find_obj.py | ||
fitline.py | ||
floodfill.py | ||
gabor_threads.py | ||
gaussian_mix.py | ||
grabcut.py | ||
hist.py | ||
houghcircles.py | ||
houghlines.py | ||
inpaint.py | ||
kalman.py | ||
kmeans.py | ||
laplace.py | ||
lappyr.py | ||
letter_recog.py | ||
lk_homography.py | ||
lk_track.py | ||
logpolar.py | ||
morphology.py | ||
mosse.py | ||
mouse_and_match.py | ||
mser.py | ||
opencv_version.py | ||
opt_flow.py | ||
peopledetect.py | ||
plane_ar.py | ||
plane_tracker.py | ||
qrcode.py | ||
squares.py | ||
stereo_match.py | ||
stitching_detailed.py | ||
stitching.py | ||
text_skewness_correction.py | ||
texture_flow.py | ||
tracker.py | ||
tst_scene_render.py | ||
turing.py | ||
video_threaded.py | ||
video_v4l2.py | ||
video.py | ||
videocapture_obsensor.py | ||
watershed.py |