obendidi / Tracking-with-darkflow

Real-time people Multitracker using YOLO v2 and deep_sort with tensorflow
GNU General Public License v3.0
524 stars 176 forks source link

Can you tell me how to track this part of the code to achieve tracking, I did not understand why it is to track and then use to track the training generated weight file, thank you #69

Open ss199302 opened 6 years ago

ss199302 commented 6 years ago

@bendidi @Jumabek if self.FLAGS.track : if self.FLAGS.tracker == "deep_sort": from deep_sort import generate_detections from deep_sort.deep_sort import nn_matching from deep_sort.deep_sort.tracker import Tracker metric = nn_matching.NearestNeighborDistanceMetric( "cosine", 0.2, 100) tracker = Tracker(metric) encoder = generate_detections.create_box_encoder( os.path.abspath("deep_sort/resources/networks/mars-small128.ckpt-68577"))