Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SIAnalytics/siatune
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1f5aee700b799d7db3a70ce1b3bd2b02f5467135
Choose a base ref
..
head repository: SIAnalytics/siatune
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: df173d8d42322f17bbf7d8f31209ee5c37c3ddcf
Choose a head ref
Showing with 1 addition and 3 deletions.
  1. +1 −3 mmtune/mm/tasks/mmdet.py
4 changes: 1 addition & 3 deletions mmtune/mm/tasks/mmdet.py
Original file line number Diff line number Diff line change
@@ -60,14 +60,13 @@ def parse_args(self, args: Sequence[str]) -> argparse.Namespace:
'like key="[a,b]" or key=a,b It also allows nested list/tuple '
'values, e.g. key="[(a,b),(c,d)]" Note that the quotation marks '
'are necessary and that no white space is allowed.')
parser.add_argument('--local_rank', type=int, default=0)
parser.add_argument(
'--auto-scale-lr',
action='store_true',
help='enable automatically scaling LR.')
args = parser.parse_args(args)
if 'LOCAL_RANK' not in os.environ:
os.environ['LOCAL_RANK'] = str(args.local_rank)
os.environ['LOCAL_RANK'] = str(dist.get_rank())
return args

def build_model(self,
@@ -106,7 +105,6 @@ def run(self, *args, **kwargs):
cfg = Config.fromfile(args.config)
if args.cfg_options is not None:
cfg.merge_from_dict(args.cfg_options)
cfg.device = ''

# set cudnn_benchmark
if cfg.get('cudnn_benchmark', False):