mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-08 01:50:27 +08:00
[Model] Add Paddle3D smoke model (#1766)
* add smoke model * add 3d vis * update code * update doc * mv paddle3d from detection to perception * update result for velocity * update code for CI * add set input data for TRT backend * add serving support for smoke model * update code * update code * update code --------- Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
@@ -379,6 +379,17 @@ void RuntimeOption::SetTrtInputShape(const std::string& input_name,
|
||||
trt_option.SetShape(input_name, min_shape, opt_shape, max_shape);
|
||||
}
|
||||
|
||||
void RuntimeOption::SetTrtInputData(const std::string& input_name,
|
||||
const std::vector<float>& min_shape_data,
|
||||
const std::vector<float>& opt_shape_data,
|
||||
const std::vector<float>& max_shape_data) {
|
||||
FDWARNING << "`RuntimeOption::SetTrtInputData` will be removed in v1.2.0, "
|
||||
"please use `RuntimeOption.trt_option.SetInputData()` instead."
|
||||
<< std::endl;
|
||||
trt_option.SetInputData(input_name, min_shape_data, opt_shape_data,
|
||||
max_shape_data);
|
||||
}
|
||||
|
||||
void RuntimeOption::SetTrtMaxWorkspaceSize(size_t max_workspace_size) {
|
||||
FDWARNING << "`RuntimeOption::SetTrtMaxWorkspaceSize` will be removed in "
|
||||
"v1.2.0, please modify its member variable directly, e.g "
|
||||
|
Reference in New Issue
Block a user