Spaces:
Sleeping
Sleeping
Commit
·
8337710
1
Parent(s):
1535831
Add code
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import cv2
|
|
4 |
import tempfile
|
5 |
from ultralytics import YOLOv10
|
6 |
|
7 |
-
model = YOLOv10.from_pretrained(f'jameslahm/
|
8 |
|
9 |
@spaces.GPU
|
10 |
def yolov10_inference(image, conf_threshold):
|
@@ -34,7 +34,7 @@ def app():
|
|
34 |
fn=yolov10_inference,
|
35 |
inputs=[image, conf_threshold],
|
36 |
outputs=[image],
|
37 |
-
stream_every=0.
|
38 |
time_limit=30
|
39 |
)
|
40 |
|
@@ -44,7 +44,7 @@ with gradio_app:
|
|
44 |
gr.HTML(
|
45 |
"""
|
46 |
<h1 style='text-align: center'>
|
47 |
-
YOLOv10
|
48 |
</h1>
|
49 |
""")
|
50 |
gr.HTML(
|
|
|
4 |
import tempfile
|
5 |
from ultralytics import YOLOv10
|
6 |
|
7 |
+
model = YOLOv10.from_pretrained(f'jameslahm/yolov10n')
|
8 |
|
9 |
@spaces.GPU
|
10 |
def yolov10_inference(image, conf_threshold):
|
|
|
34 |
fn=yolov10_inference,
|
35 |
inputs=[image, conf_threshold],
|
36 |
outputs=[image],
|
37 |
+
stream_every=0.2,
|
38 |
time_limit=30
|
39 |
)
|
40 |
|
|
|
44 |
gr.HTML(
|
45 |
"""
|
46 |
<h1 style='text-align: center'>
|
47 |
+
YOLOv10 Webcam Stream
|
48 |
</h1>
|
49 |
""")
|
50 |
gr.HTML(
|