Commit 3c580b47 authored by zhe chen's avatar zhe chen
Browse files

Clean detection code

parent b1238b9d
...@@ -113,7 +113,6 @@ def parse_args(): ...@@ -113,7 +113,6 @@ def parse_args():
def main(): def main():
print('!!!!!!!!!!!!!!!!!!1', flush=True)
args = parse_args() args = parse_args()
assert args.out or args.eval or args.format_only or args.show \ assert args.out or args.eval or args.format_only or args.show \
...@@ -169,7 +168,6 @@ def main(): ...@@ -169,7 +168,6 @@ def main():
else: else:
cfg.gpu_ids = range(1) cfg.gpu_ids = range(1)
print('!!!!!!!!!!!!!!!!!!2', flush=True)
# init distributed env first, since logger depends on the dist info. # init distributed env first, since logger depends on the dist info.
if args.launcher == 'none': if args.launcher == 'none':
distributed = False distributed = False
...@@ -182,7 +180,6 @@ def main(): ...@@ -182,7 +180,6 @@ def main():
else: else:
distributed = True distributed = True
init_dist(args.launcher, **cfg.dist_params) init_dist(args.launcher, **cfg.dist_params)
print('!!!!!!!!!!!!!!!!!!3', flush=True)
rank, _ = get_dist_info() rank, _ = get_dist_info()
# allows not to create # allows not to create
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment