Update infer.cc

This commit is contained in:
Jason
2022-10-02 14:11:54 +08:00
committed by GitHub
parent db7a55f487
commit d835d3af0b

View File

@@ -85,8 +85,6 @@ void TrtInfer(const std::string& model_dir, const std::string& image_file) {
auto option = fastdeploy::RuntimeOption();
option.UseGpu();
option.UseTrtBackend();
option.SetTrtInputShape("x", {1, 3, 256, 256}, {1, 3, 1024, 1024},
{1, 3, 2048, 2048});
auto model = fastdeploy::vision::segmentation::PaddleSegModel(
model_file, params_file, config_file, option);