Closed varungupta31 closed 2 years ago
It seems that the code did not go into the for loop. So it took 0s and you got divzeroerror. Please debug the condition variable of the for loop. line290 and line299
@cosimo17 Yes, the problem was with naming files in a certain way, as the main.py
code is written that way. You either name the det files det.txt
or modify the code that expects only det.txt files, I did the latter and solved the issue.
I created a det (.txt) file for my detections and trying to run the tracker using the file, but I'm getting the error:
The command i'm using to run the tracker:
python sort.py --phase train_custom --max_age 25 --min_hits 10
My det (.txt) file contents look like this:
This det text file is located at
sort/data/train_custom
I tried changing the line 327 in
sort.py
fromprint("Total Tracking took: %.3f seconds for %d frames or %.1f FPS" % (total_time, total_frames, total_frames / total_time))
toprint("Total Tracking took: %.3f seconds for %d frames" % (total_time, total_frames))
this removes the ZeroDivisionError and I get the message:Total Tracking took: 0.000 seconds for 0 frames
but there is no output file generated.
Please help me out. @abewley @sodabeta7