DatSplit commited on
Commit
53e08b8
·
verified ·
1 Parent(s): 5b80254

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -66,8 +66,10 @@ def inference(image_path, model_name, bbox_threshold):
66
  ort_inputs = {
67
  'input': tensor_img.cpu().numpy()
68
  }
69
-
70
- model_path = "rfdetr.onnx"
 
 
71
 
72
 
73
  sess_options = onnxruntime.SessionOptions()
 
66
  ort_inputs = {
67
  'input': tensor_img.cpu().numpy()
68
  }
69
+ if model_name == "RF-DETR-B":
70
+ model_path = "rfdetr.onnx"
71
+ else:
72
+ model_path = "rfdetrl.onnx"
73
 
74
 
75
  sess_options = onnxruntime.SessionOptions()