rachana219 commited on
Commit
4eff630
·
1 Parent(s): 5eb701d

Initial commit

Browse files
Files changed (1) hide show
  1. track.py +8 -2
track.py CHANGED
@@ -59,7 +59,7 @@ def run(
59
  save_conf=False, # save confidences in --save-txt labels
60
  save_crop=False, # save cropped prediction boxes
61
  save_trajectories=False, # save trajectories for each track
62
- save_vid=False, # save confidences in --save-txt labels
63
  nosave=False, # do not save images/videos
64
  classes=None, # filter by class: --class 0, or --class 0 2 3
65
  agnostic_nms=False, # class-agnostic NMS
@@ -68,7 +68,7 @@ def run(
68
  update=False, # update all models
69
  project=ROOT / 'runs' / 'track', # save results to project/name
70
  name='exp', # save results to project/name
71
- exist_ok=False, # existing project/name ok, do not increment
72
  line_thickness=2, # bounding box thickness (pixels)
73
  hide_labels=False, # hide labels
74
  hide_conf=False, # hide confidences
@@ -367,4 +367,10 @@ def main(opt):
367
  def MOT():
368
  opt = parse_opt()
369
  main(opt)
 
 
 
 
 
 
370
 
 
59
  save_conf=False, # save confidences in --save-txt labels
60
  save_crop=False, # save cropped prediction boxes
61
  save_trajectories=False, # save trajectories for each track
62
+ save_vid=True, # save confidences in --save-txt labels
63
  nosave=False, # do not save images/videos
64
  classes=None, # filter by class: --class 0, or --class 0 2 3
65
  agnostic_nms=False, # class-agnostic NMS
 
68
  update=False, # update all models
69
  project=ROOT / 'runs' / 'track', # save results to project/name
70
  name='exp', # save results to project/name
71
+ exist_ok=True, # existing project/name ok, do not increment
72
  line_thickness=2, # bounding box thickness (pixels)
73
  hide_labels=False, # hide labels
74
  hide_conf=False, # hide confidences
 
367
  def MOT():
368
  opt = parse_opt()
369
  main(opt)
370
+ save_dir = increment_path('runs/track/exp', exist_ok=False)
371
+ input = os.path.join(save_dir,'out.mp4')
372
+ tracking_method='strongsort'
373
+ outpath = 'output/' + tracking_method + '_output.mp4'
374
+ #!ffmpeg -i $input -vf fps=30 -vcodec libx264 $outpath tbd
375
+
376