mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Rename pybind/fastdeploy_runtime.cc to pybind/runtime.cc (#273)
* fix yaml * Rename pybind/fastdeploy_runtime.cc to runtime.cc
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import fastdeploy as fd
|
||||
from fastdeploy import ModelFormat
|
||||
import numpy as np
|
||||
|
||||
# 下载模型并解压
|
||||
@@ -21,7 +22,7 @@ fd.download(model_url, path=".")
|
||||
|
||||
option = fd.RuntimeOption()
|
||||
|
||||
option.set_model_path("mobilenetv2.onnx", model_format="onnx")
|
||||
option.set_model_path("mobilenetv2.onnx", model_format=ModelFormat.ONNX)
|
||||
|
||||
option.use_openvino_backend()
|
||||
|
||||
|
Reference in New Issue
Block a user