Update train_net.py
Browse files- tools/train_net.py +2 -1
tools/train_net.py
CHANGED
@@ -73,7 +73,8 @@ def setup(args):
|
|
73 |
Create configs and perform basic setups.
|
74 |
"""
|
75 |
cfg = get_cfg()
|
76 |
-
|
|
|
77 |
cfg.merge_from_list(args.opts)
|
78 |
|
79 |
with open(args.json_annotation_train, 'r') as fp:
|
|
|
73 |
Create configs and perform basic setups.
|
74 |
"""
|
75 |
cfg = get_cfg()
|
76 |
+
if args.config_file != "":
|
77 |
+
cfg.merge_from_file(args.config_file)
|
78 |
cfg.merge_from_list(args.opts)
|
79 |
|
80 |
with open(args.json_annotation_train, 'r') as fp:
|