Spaces:
Runtime error
Runtime error
NassimeBejaia
commited on
Commit
•
9075a90
1
Parent(s):
c1777d4
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def prediction(vname):
|
|
85 |
if os.path.exists(wpath):
|
86 |
|
87 |
os.system("python 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)
|
88 |
-
os.system("ffmpeg -i inference/output/"+vname + " -vcodec libx264 -y test_detection/inference/output/output_video.mp4")
|
89 |
path = 'test_detection/inference/output/output_video.mp4'
|
90 |
if os.path.exists(path):
|
91 |
video_file = open(path, 'rb')
|
|
|
85 |
if os.path.exists(wpath):
|
86 |
|
87 |
os.system("python 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)
|
88 |
+
os.system("ffmpeg -i test_detection/inference/output/"+vname + " -vcodec libx264 -y test_detection/inference/output/output_video.mp4")
|
89 |
path = 'test_detection/inference/output/output_video.mp4'
|
90 |
if os.path.exists(path):
|
91 |
video_file = open(path, 'rb')
|