Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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()
|