yourusername commited on
Commit
4dec890
β€’
1 Parent(s): b3c7b84

:sparkles: make sure we on gpu

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)