Skip to content

Commit

Permalink
Merge pull request #14 from swtyree/pr_bop_inference_single_dataset
Browse files Browse the repository at this point in the history
BOP inference on individual datasets
  • Loading branch information
ylabbe authored Feb 15, 2023
2 parents f9ce8ab + cf49b5e commit 625d08d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cosypose/scripts/run_bop_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def main():
parser.add_argument('--id', default=-1, type=int)
parser.add_argument('--config', default='bop-pbr', type=str)
parser.add_argument('--nviews', dest='n_views', default=1, type=int)
parser.add_argument('--dataset', default=None, type=str)
parser.add_argument('--icp', action='store_true')
args = parser.parse_args()

Expand Down Expand Up @@ -246,7 +247,11 @@ def main():
ds_names = ['hb', 'tless', 'ycbv']
else:
ds_names = ['hb', 'icbin', 'itodd', 'lmo', 'tless', 'tudl', 'ycbv']


if args.dataset is not None:
assert args.dataset in ds_names, f'{args.dataset} not in {ds_names}'
ds_names = [args.dataset]

for ds_name in ds_names:
this_cfg = deepcopy(cfg)
this_cfg.ds_name = BOP_CONFIG[ds_name]['inference_ds_name'][0]
Expand Down

0 comments on commit 625d08d

Please sign in to comment.