thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

ValueError with Tracker encoder #1077

Closed ixtiyoruz closed 2 years ago

ixtiyoruz commented 5 years ago

Hi, i have used yolov2.weights and yolov2.cfg and downloaded deepsort weights as you explained. but it throws an error saying :

....
Tracking-with-darkflow\darkflow\darkflow\net\yolov2\predict.py", line 107, in postprocess
    detections = detections + extract_boxes(self,mask)
  File "C:\Users\essys\Desktop\project_1\Tracking-with-darkflow\darkflow\darkflow\net\yolov2\predict.py", line 43, in extract_boxes
    thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

Is there anything i might have done wrongly ?