NassimeBejaia commited on
Commit
aa65932
1 Parent(s): 92df89a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -81,8 +81,8 @@ def prediction(vname):
81
  with st.spinner('Running detection...'):
82
  os.system("python test_detection/track.py --yolo_weights test_detection/yolov5/weights/crowdhuman_yolov5m.pt --img 352 --save-vid --save-txt --classes 1 --conf-thres 0.4 --source " + vpath)
83
 
84
- path = 'inference/output/output_'+vname
85
- st.write(os.path.exists(path), os.path.exists('inference/output/output'+vname))
86
 
87
  with st.spinner('Video loading...'):
88
  os.system("ffmpeg -i inference/output/"+vname + " -vcodec libx264 -y inference/output/output_"+vname)
@@ -183,7 +183,7 @@ def main():
183
  if __name__ == '__main__':
184
 
185
  os.system('git clone --recurse-submodules https://github.com/nnassime/test_detection.git')
186
- st.write(os.listdir('test_detection/'))
187
- st.write(os.listdir('test_detection/yolov5/weights/'))
188
  load_model()
189
  main()
81
  with st.spinner('Running detection...'):
82
  os.system("python test_detection/track.py --yolo_weights test_detection/yolov5/weights/crowdhuman_yolov5m.pt --img 352 --save-vid --save-txt --classes 1 --conf-thres 0.4 --source " + vpath)
83
 
84
+ #path = 'inference/output/output_'+vname
85
+ #st.write(os.path.exists(path), os.path.exists('inference/output/output'+vname))
86
 
87
  with st.spinner('Video loading...'):
88
  os.system("ffmpeg -i inference/output/"+vname + " -vcodec libx264 -y inference/output/output_"+vname)
183
  if __name__ == '__main__':
184
 
185
  os.system('git clone --recurse-submodules https://github.com/nnassime/test_detection.git')
186
+ #st.write(os.listdir('test_detection/'))
187
+ #st.write(os.listdir('test_detection/yolov5/weights/'))
188
  load_model()
189
  main()