Skip to content

Commit

Permalink
[Fix] set optional arg a default value (open-mmlab#483)
Browse files Browse the repository at this point in the history
* optional default value

* resolve comments

Co-authored-by: dongchunyu.vendor <[email protected]>
(cherry picked from commit ba641c3)
  • Loading branch information
AllentDan authored and lvhan028 committed Jun 7, 2022
1 parent cdaa16b commit a932bf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/deploy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import logging
import os
import os.path as osp
from functools import partial

Expand All @@ -27,7 +28,10 @@ def parse_args():
parser.add_argument('img', help='image used to convert model model')
parser.add_argument(
'--test-img', default=None, help='image used to test model')
parser.add_argument('--work-dir', help='the dir to save logs and models')
parser.add_argument(
'--work-dir',
default=os.getcwd(),
help='the dir to save logs and models')
parser.add_argument(
'--calib-dataset-cfg',
help='dataset config path used to calibrate in int8 mode. If not \
Expand Down

0 comments on commit a932bf9

Please sign in to comment.