Skip to content

Commit

Permalink
Update export_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogurt-Peng authored Dec 22, 2021
1 parent 5dd25c3 commit f5f6655
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def get_parser():
)
parser.add_argument(
"--image_size",
default=640,
type=int,
default=(320,320),
type=tupe,
help="Image size for evaluation (default: 640).",
)
parser.add_argument("--batch_size", default=1, type=int, help="Batch size.")
Expand Down Expand Up @@ -159,7 +159,8 @@ def cli_main():
output_names = ["scores", "labels", "boxes"]
model = YOLOv5.load_from_yolov5(
checkpoint_path,
score_thresh=args.score_thresh,
size=args.image_size,
core_thresh=args.score_thresh,
version=args.version,
)
model.eval()
Expand Down

0 comments on commit f5f6655

Please sign in to comment.