Skip to content

Commit

Permalink
Using trt backend
Browse files Browse the repository at this point in the history
  • Loading branch information
peiva-git committed Dec 30, 2023
1 parent 177cf44 commit e8e659b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basketballdetector/predicting/predict_ball_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __setup_model(self) -> fd.vision.segmentation.PaddleSegModel:
option = fd.RuntimeOption()
option.use_gpu()
if self.__use_trt:
option.use_paddle_infer_backend()
option.use_trt_backend()
option.paddle_infer_option.enable_trt = True
option.trt_option.set_shape(
'x',
Expand Down

0 comments on commit e8e659b

Please sign in to comment.