Skip to content

Commit

Permalink
feat(main): Add use_cuda and use_dml parameters of CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Jun 25, 2024
1 parent 98c10ec commit 0d88463
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rapid_layout/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ def main():
choices=list(KEY_TO_MODEL_URL.keys()),
help="IoU threshold, the range is [0, 1]",
)
parser.add_argument("--use_cuda", action="store_true", help="Whether to use cuda.")
parser.add_argument(
"--use_dml",
action="store_true",
help="Whether to use DirectML, which only works in Windows10+.",
)
parser.add_argument(
"-v",
"--vis",
Expand Down

0 comments on commit 0d88463

Please sign in to comment.