mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
Update infer.cc
This commit is contained in:
@@ -77,8 +77,6 @@ void TrtInfer(const std::string& model_dir, const std::string& image_file) {
|
|||||||
auto option = fastdeploy::RuntimeOption();
|
auto option = fastdeploy::RuntimeOption();
|
||||||
option.UseGpu();
|
option.UseGpu();
|
||||||
option.UseTrtBackend();
|
option.UseTrtBackend();
|
||||||
option.SetTrtInputShape("inputs", {1, 3, 224, 224}, {1, 3, 224, 224},
|
|
||||||
{1, 3, 224, 224});
|
|
||||||
auto model = fastdeploy::vision::classification::PaddleClasModel(
|
auto model = fastdeploy::vision::classification::PaddleClasModel(
|
||||||
model_file, params_file, config_file, option);
|
model_file, params_file, config_file, option);
|
||||||
if (!model.Initialized()) {
|
if (!model.Initialized()) {
|
||||||
|
Reference in New Issue
Block a user