diff --git a/detectron2/data/datasets/mot.py b/detectron2/data/datasets/mot.py index 31c34fb..2717631 100644 --- a/detectron2/data/datasets/mot.py +++ b/detectron2/data/datasets/mot.py @@ -521,7 +521,7 @@ def convert_to_coco_json(dataset_name, output_file, allow_cached=True): #assert sys.argv[3] in DatasetCatalog.list() # meta = MetadataCatalog.get(sys.argv[3]) - dicts = load_crowdhuman_json(sys.argv[1], sys.argv[2], sys.argv[3]) + dicts = load_crowdhuman_json(*sys.argv[1:4:1]) logger.info("Done loading {} samples.".format(len(dicts))) dirname = "coco-data-vis"