Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
08e02d1
1
Parent(s):
72ed75e
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,15 +6,14 @@ os.system("gdown https://drive.google.com/uc?id=1P4mY0Yyd3PPTybgZkjMYhFri88nTmJX
|
|
| 6 |
|
| 7 |
def inference(image):
|
| 8 |
os.system("python3 tools/demo_track.py image -f exps/example/mot/yolox_x_mix_det.py -c ./bytetrack_x_mot17.pth.tar --save_result --device 'cpu' --path "+image.name)
|
| 9 |
-
#os.system("python onnx_inference.py -i "+video)
|
| 10 |
-
#os.system("ls .")
|
| 11 |
return "out.jpg"
|
| 12 |
|
| 13 |
|
| 14 |
title = "Bytetrack"
|
| 15 |
description = "Gradio demo for ByteTrack: Multi-Object Tracking by Associating Every Detection Box. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
| 16 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.06864'> ByteTrack: Multi-Object Tracking by Associating Every Detection Box </a> | <a href
|
| 17 |
|
|
|
|
| 18 |
gr.Interface(
|
| 19 |
inference,
|
| 20 |
gr.inputs.Image(type="file"),
|
|
@@ -22,5 +21,6 @@ gr.Interface(
|
|
| 22 |
title=title,
|
| 23 |
description=description,
|
| 24 |
article=article,
|
| 25 |
-
enable_queue=True
|
|
|
|
| 26 |
).launch(debug=True)
|
|
|
|
| 6 |
|
| 7 |
def inference(image):
|
| 8 |
os.system("python3 tools/demo_track.py image -f exps/example/mot/yolox_x_mix_det.py -c ./bytetrack_x_mot17.pth.tar --save_result --device 'cpu' --path "+image.name)
|
|
|
|
|
|
|
| 9 |
return "out.jpg"
|
| 10 |
|
| 11 |
|
| 12 |
title = "Bytetrack"
|
| 13 |
description = "Gradio demo for ByteTrack: Multi-Object Tracking by Associating Every Detection Box. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
| 14 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.06864' target='_blank'> ByteTrack: Multi-Object Tracking by Associating Every Detection Box </a> | <a href='https://github.com/ifzhang/ByteTrack' target='_blank'>Github Repo</a></p>"
|
| 15 |
|
| 16 |
+
examples=[['paint.jpeg']]
|
| 17 |
gr.Interface(
|
| 18 |
inference,
|
| 19 |
gr.inputs.Image(type="file"),
|
|
|
|
| 21 |
title=title,
|
| 22 |
description=description,
|
| 23 |
article=article,
|
| 24 |
+
enable_queue=True,
|
| 25 |
+
examples=examples
|
| 26 |
).launch(debug=True)
|