Skip to content

Commit

Permalink
Merge pull request #140 from Dexterp37/patch-1
Browse files Browse the repository at this point in the history
Rename arguments to match code usage
  • Loading branch information
Peterande authored Jan 20, 2025
2 parents 0712f59 + 0a26a94 commit 8944d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/benchmark/trt_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def parse_args():
parser = argparse.ArgumentParser(description='Argument Parser Example')
parser.add_argument('--COCO_dir',
parser.add_argument('--infer_dir',
type=str,
default='/data/COCO2017/val2017',
help="Directory for images to perform inference on.")
Expand Down Expand Up @@ -180,7 +180,7 @@ def main():
'orig_target_sizes': torch.tensor([640, 640]).to(im.device),
}

engine_files = glob.glob(os.path.join(FLAGS.models_dir, "*.engine"))
engine_files = glob.glob(os.path.join(FLAGS.engine_dir, "*.engine"))
results = []

for engine_file in engine_files:
Expand Down

0 comments on commit 8944d61

Please sign in to comment.