Multitarget-tracker
Multitarget-tracker copied to clipboard
CTrack::RectUpdate Segmentation fault
When debugging the Master branch code, I got segmentation fault in https://github.com/Smorodov/Multitarget-tracker/blob/master/src/Tracker/track.cpp#L681. The error occurred the second time the Kalman Filters state was updated.
I have changed:
- option(BUILD_YOLO_LIB "Should compiled standalone yolo_lib with original darknet?" ON)
- I deleted all "constexpr" in " if constexpr ***"(e.g. if constexpr (HUNGARIAN_LOGS)) in src/Tracker/HungarianAlg/HungarianAlg.cpp, because my compiler(C++14) does not support C++17.
The relevant information: Code branch: Master settings.ini: default(yolov4.weights,data/yolov4.cfg) Run examples 5: ./MultitargetTracker ../data/atrium.avi -e=5 -a=0 -o=res_darknet_yolo.mp4 Ubuntu16.04 Cuda 10.0 Cudnn 7.6.4 GCC 5.4.0
Any help is OK, Thanks!
Hi! It can be a bug in OpenCV tracker. Do you can run it in debug mode and send me additional info? But before one more thing: Set here: https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L703
m_trackerSettings.m_lostTrackType = tracking::TrackKCF;
CSRT tracker in OpenCV isn't stable and has some bugs.
I have verified:
- The segmentation error occurs in both release and debug modes without change the code: https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L703.
- KCF is feasible. In fact, I also verified that KCF is OK by specifying it in the configuration file(setting.ini) yesterday in both release and debug modes.