Skip to content

Commit 4f59b70

Browse files
committed
no eval detection flag
1 parent 99c5627 commit 4f59b70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cosypose/scripts/run_detector_training.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
parser.add_argument('--config', default='', type=str)
1414
parser.add_argument('--debug', action='store_true')
1515
parser.add_argument('--resume', default='', type=str)
16+
parser.add_argument('--no-eval', action='store_true')
1617
args = parser.parse_args()
1718

1819
cfg = argparse.ArgumentParser('').parse_args([])
@@ -104,6 +105,9 @@
104105
raise ValueError(args.config)
105106
cfg.val_ds_names = cfg.train_ds_names
106107

108+
if args.no_eval:
109+
cfg.test_ds_names = []
110+
107111
cfg.run_id = f'detector-{args.config}-{run_comment}-{N_RAND}'
108112

109113
if args.debug:

0 commit comments

Comments
 (0)