mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
Rename fastdeploy_runtime.h to runtime.h and Frontend to ModelFormat (#263)
rename frontend to model_format
This commit is contained in:
@@ -18,7 +18,8 @@ namespace fastdeploy {
|
||||
void BindYOLOv5Lite(pybind11::module& m) {
|
||||
pybind11::class_<vision::detection::YOLOv5Lite, FastDeployModel>(m,
|
||||
"YOLOv5Lite")
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption, Frontend>())
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption,
|
||||
ModelFormat>())
|
||||
.def("predict",
|
||||
[](vision::detection::YOLOv5Lite& self, pybind11::array& data,
|
||||
float conf_threshold, float nms_iou_threshold) {
|
||||
|
Reference in New Issue
Block a user