tuansunday05 commited on
Commit
96a688e
·
verified ·
1 Parent(s): b5338eb

Retrun to 1 GPU inference

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def yolov9_inference(model_id, image_size, conf_threshold, iou_threshold, img_pa
22
  if vid_extension.lower() in vid_extensions:
23
  input_path = vid_path
24
 
25
- output_path = run(yolo_weights=model_id, imgsz=(image_size,image_size), conf_thres=conf_threshold, iou_thres=iou_threshold, source=input_path, device='0, 1', strong_sort_weights = "osnet_x0_25_msmt17.pt", hide_conf= True)
26
  # Assuming output_path is the path to the output file
27
  _, output_extension = os.path.splitext(output_path)
28
  if output_extension.lower() in img_extensions:
 
22
  if vid_extension.lower() in vid_extensions:
23
  input_path = vid_path
24
 
25
+ output_path = run(yolo_weights=model_id, imgsz=(image_size,image_size), conf_thres=conf_threshold, iou_thres=iou_threshold, source=input_path, device='0', strong_sort_weights = "osnet_x0_25_msmt17.pt", hide_conf= True)
26
  # Assuming output_path is the path to the output file
27
  _, output_extension = os.path.splitext(output_path)
28
  if output_extension.lower() in img_extensions: