Spaces:
Runtime error
Runtime error
Commit
Β·
4dec890
1
Parent(s):
b3c7b84
:sparkles: make sure we on gpu
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ import gradio as gr
|
|
| 8 |
|
| 9 |
from inferer import Inferer
|
| 10 |
|
| 11 |
-
pipeline = Inferer("nateraw/yolov6s")
|
| 12 |
-
|
| 13 |
|
| 14 |
def fn_image(image, conf_thres, iou_thres):
|
| 15 |
return pipeline(image, conf_thres, iou_thres)
|
|
|
|
| 8 |
|
| 9 |
from inferer import Inferer
|
| 10 |
|
| 11 |
+
pipeline = Inferer("nateraw/yolov6s", device='cuda')
|
| 12 |
+
print(f"GPU on? {'π’' if pipeline.device.type != 'cpu' else 'π΄'}")
|
| 13 |
|
| 14 |
def fn_image(image, conf_thres, iou_thres):
|
| 15 |
return pipeline(image, conf_thres, iou_thres)
|