You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Performance benchmarks: single image (sample.jpg), time in seconds
81
+
- Triton server: (gRPC-HTTP): <br>
82
+
83
+
| Model format| gRPC (s)| HTTP (s) |
84
+
|-------------|---------|----------|
85
+
| TensoRT | 0.946 | 0.952 |
86
+
| Torchscript | 1.244 | 1.098 |
87
+
| ONNX | 1.052 | 1.060 |
88
+
89
+
- Classic Pytorch: 1.319s
80
90
81
91
#### Arguments
82
92
*`-m`: name of model with format
83
93
*`-x`: version of model
84
-
*`--input`: input image/folder
94
+
*`--test_folder`: input image/folder
85
95
*`-i`: protocol (HTTP/gRPC)
86
96
*`-u`: URL of corresponding protocol (HTTP-8000, gRPC-8001)
87
97
* ... (Details in ./infer_triton.py)
88
98
89
-
99
+
#### Notes:
100
+
- Error below is caused by wrong dynamic input shapes, check if the input image shape is valid to dynamic shapes in config.
101
+
```
102
+
inference failed: [StatusCode.INTERNAL] request specifies invalid shape for input 'input' for detec_trt_0_gpu0. Error details: model expected the shape of dimension 2 to be between 256 and 1200 but received 1216
103
+
```
90
104
b. Classic Pytorch (.pth) inference:
91
105
```
92
106
$ python test.py --trained_model=[weightfile] --test_folder=[folder path to test images]
0 commit comments