Skip to content

Commit

Permalink
feat: change argument gpu to store_true
Browse files Browse the repository at this point in the history
  • Loading branch information
weiaicunzai committed Dec 29, 2020
1 parent 0df7238 commit b9cca00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
parser = argparse.ArgumentParser()
parser.add_argument('-net', type=str, required=True, help='net type')
parser.add_argument('-weights', type=str, required=True, help='the weights file you want to test')
parser.add_argument('-gpu', type=bool, default=True, help='use gpu or not')
parser.add_argument('-gpu', action='store_true', default=False, help='use gpu or not')
parser.add_argument('-b', type=int, default=16, help='batch size for dataloader')
args = parser.parse_args()

Expand Down

0 comments on commit b9cca00

Please sign in to comment.