Skip to content

Commit

Permalink
Adjusted TRTWrapper args
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Fomitchev <[email protected]>
  • Loading branch information
borisfom committed Aug 11, 2024
1 parent b24abb3 commit 6053338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def __init__(self, config_file="./configs/infer.yaml", **override):
bundle_root = parser.get_parsed_content("bundle_root")
ts = os.path.getmtime(config_file)
self.model.image_encoder.encoder = TRTWrapper(
f"{bundle_root}/image_encoder",
self.model.image_encoder.encoder,
f"{bundle_root}/image_encoder",
precision="fp16",
build_args={
"builder_optimization_level": 5,
Expand All @@ -148,8 +148,8 @@ def __init__(self, config_file="./configs/infer.yaml", **override):
timestamp=ts,
)
self.model.class_head = TRTWrapper(
f"{bundle_root}/class_head",
self.model.class_head,
f"{bundle_root}/class_head",
precision="fp16",
build_args={
"builder_optimization_level": 5,
Expand Down

0 comments on commit 6053338

Please sign in to comment.