Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- .gitattributes +2 -0
- app.py +48 -4
- cut_a_2.mp4 +3 -0
- cut_b_1.mp4 +3 -0
.gitattributes
CHANGED
@@ -46,3 +46,5 @@ yolov9/runs/detect/yolov9_c_640_detect2/a.mp4 filter=lfs diff=lfs merge=lfs -tex
|
|
46 |
yolov9/runs/detect/yolov9_c_640_detect3/b.mp4 filter=lfs diff=lfs merge=lfs -text
|
47 |
a.mp4 filter=lfs diff=lfs merge=lfs -text
|
48 |
b.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
46 |
yolov9/runs/detect/yolov9_c_640_detect3/b.mp4 filter=lfs diff=lfs merge=lfs -text
|
47 |
a.mp4 filter=lfs diff=lfs merge=lfs -text
|
48 |
b.mp4 filter=lfs diff=lfs merge=lfs -text
|
49 |
+
cut_a_2.mp4 filter=lfs diff=lfs merge=lfs -text
|
50 |
+
cut_b_1.mp4 filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -32,10 +32,20 @@ with gr.Blocks() as demo:
|
|
32 |
img_input = [gr.PlayableVideo(label="Input Image", autoplay=True, width=300, height=300)]
|
33 |
pred_outputs = [gr.PlayableVideo(label="Output Image",width=640, autoplay=True, height=640)]
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
with gr.Tab("Image"):
|
|
|
|
|
39 |
gr.Markdown(
|
40 |
"""
|
41 |
Upload image file and detect vehicles present in the image
|
@@ -44,9 +54,43 @@ with gr.Blocks() as demo:
|
|
44 |
with gr.Row():
|
45 |
img_input = [gr.Image(type="filepath",label="Input Image",width=300, height=300)]
|
46 |
pred_outputs = [gr.Image(label="Output Image",width=640, height=640)]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
image_button = gr.Button("Predict")
|
49 |
-
image_button.click(inference, inputs=img_input, outputs=pred_outputs)
|
50 |
|
51 |
|
52 |
|
|
|
32 |
img_input = [gr.PlayableVideo(label="Input Image", autoplay=True, width=300, height=300)]
|
33 |
pred_outputs = [gr.PlayableVideo(label="Output Image",width=640, autoplay=True, height=640)]
|
34 |
|
35 |
+
gr.Markdown("## Examples")
|
36 |
+
|
37 |
+
with gr.Row():
|
38 |
+
gr.Examples([ 'cut_a_2.mp4',
|
39 |
+
'cut_b_1.mp4'
|
40 |
+
],
|
41 |
+
inputs=img_input, fn=inference)
|
42 |
+
|
43 |
+
image_button = gr.Button("Predict")
|
44 |
+
image_button.click(inference, inputs=img_input, outputs=pred_outputs)
|
45 |
|
46 |
with gr.Tab("Image"):
|
47 |
+
|
48 |
+
|
49 |
gr.Markdown(
|
50 |
"""
|
51 |
Upload image file and detect vehicles present in the image
|
|
|
54 |
with gr.Row():
|
55 |
img_input = [gr.Image(type="filepath",label="Input Image",width=300, height=300)]
|
56 |
pred_outputs = [gr.Image(label="Output Image",width=640, height=640)]
|
57 |
+
|
58 |
+
gr.Markdown("## Examples")
|
59 |
+
|
60 |
+
with gr.Row():
|
61 |
+
gr.Examples([ 'lamborghini-aventador-2932196_1280.jpg',
|
62 |
+
'0KL1ICR33YYZ.jpg',
|
63 |
+
'0RVD53V60NOM.jpg',
|
64 |
+
'0RW4I2NTAH8K.jpg',
|
65 |
+
'1CSLEJ2UJD3G.jpg',
|
66 |
+
'1E4CD5K13UXO.jpg',
|
67 |
+
'2.jpg',
|
68 |
+
'3BXRTQZ70A7M.jpg',
|
69 |
+
'3GVLVIQ2J4P2.jpg',
|
70 |
+
'3RIYE11PE0VK.jpg',
|
71 |
+
'4AS6VDRS3Y07.jpg',
|
72 |
+
'4DM206U83T3B.jpg',
|
73 |
+
'05U2U2R2K6DN.jpg',
|
74 |
+
'6LBV93O0MWUY.jpg',
|
75 |
+
'6MFW23QQFW3E.jpg',
|
76 |
+
'6V4OYHB47QOX.jpg',
|
77 |
+
'6VOUS49LKRLI.jpg',
|
78 |
+
'6VOUS49LKRLI.jpg',
|
79 |
+
'7L1KFQDNLCBY.jpg',
|
80 |
+
'23BNPRMYV2RT.jpg',
|
81 |
+
'24IHCQ74TBML.jpg',
|
82 |
+
'38EE8ZBTSGD1.jpg',
|
83 |
+
|
84 |
+
'05U2U2R2K6DN.jpg',
|
85 |
+
'0KL1ICR33YYZ.jpg'
|
86 |
+
|
87 |
+
|
88 |
+
],
|
89 |
+
inputs=img_input, fn=inference)
|
90 |
+
image_button = gr.Button("Predict")
|
91 |
+
image_button.click(inference, inputs=img_input, outputs=pred_outputs)
|
92 |
+
|
93 |
|
|
|
|
|
94 |
|
95 |
|
96 |
|
cut_a_2.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b91219aff423ce2535abf2c53ee82e6d42492ad63d472a45f98560318bf29cf
|
3 |
+
size 6077990
|
cut_b_1.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29e414517db0b5a30675f9f2a91ef6e97b4ec2bd0fb1279ca03f14a0b5148c3b
|
3 |
+
size 4129109
|