mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
[Model] Support DINO & DETR and add PaddleDetectionModel class (#1837)
* 添加paddleclas模型 * 更新README_CN * 更新README_CN * 更新README * update get_model.sh * update get_models.sh * update paddleseg models * update paddle_seg models * update paddle_seg models * modified test resources * update benchmark_gpu_trt.sh * add paddle detection * add paddledetection to benchmark * modified benchmark cmakelists * update benchmark scripts * modified benchmark function calling * modified paddledetection documents * add PaddleDetectonModel * reset examples/paddledetection * resolve conflict * update pybind * resolve conflict * fix bug * delete debug mode * update checkarch log * update trt inputs example * Update README.md --------- Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
@@ -266,6 +266,16 @@ class RuntimeOption:
|
||||
"""
|
||||
return self._option.use_ascend()
|
||||
|
||||
def disable_valid_backend_check(self):
|
||||
""" Disable checking validity of backend during inference
|
||||
"""
|
||||
return self._option.disable_valid_backend_check()
|
||||
|
||||
def enable_valid_backend_check(self):
|
||||
"""Enable checking validity of backend during inference
|
||||
"""
|
||||
return self._option.enable_valid_backend_check()
|
||||
|
||||
def set_cpu_thread_num(self, thread_num=-1):
|
||||
"""Set number of threads if inference with CPU
|
||||
|
||||
|
Reference in New Issue
Block a user