Update infer_ppyoloe.cc

This commit is contained in:
Jason
2022-09-15 14:03:40 +08:00
committed by GitHub
parent 09788d265b
commit f77f558d81

View File

@@ -83,8 +83,6 @@ void TrtInfer(const std::string& model_dir, const std::string& image_file) {
auto option = fastdeploy::RuntimeOption();
option.UseGpu();
option.UseTrtBackend();
option.SetTrtInputShape("image", {1, 3, 640, 640});
option.SetTrtInputShape("scale_factor", {1, 2});
auto model = fastdeploy::vision::detection::PPYOLOE(model_file, params_file,
config_file, option);
if (!model.Initialized()) {