From 45b4d69c114a2f4ac0f8b4a12c0714fd44f42fe6 Mon Sep 17 00:00:00 2001 From: Sungguk Cha Date: Fri, 29 Jul 2022 11:28:38 +0900 Subject: [PATCH 1/3] Update mix_data_ablation.py --- tools/mix_data_ablation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/mix_data_ablation.py b/tools/mix_data_ablation.py index b830c691..2c6d53c2 100644 --- a/tools/mix_data_ablation.py +++ b/tools/mix_data_ablation.py @@ -90,4 +90,5 @@ mix_json['annotations'] = ann_list mix_json['videos'] = video_list mix_json['categories'] = category_list -json.dump(mix_json, open('datasets/mix_mot_ch/annotations/train.json','w')) \ No newline at end of file +os.makedirs('datasets/mix_mot_ch/annotations', exist_ok=True) +json.dump(mix_json, open('datasets/mix_mot_ch/annotations/train.json','w')) From fdc816669544b42e95469b81d68899baf9a03e5e Mon Sep 17 00:00:00 2001 From: Sungguk Cha Date: Fri, 29 Jul 2022 11:29:13 +0900 Subject: [PATCH 2/3] Update mix_data_test_mot17.py --- tools/mix_data_test_mot17.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mix_data_test_mot17.py b/tools/mix_data_test_mot17.py index 5d81855b..0583b0e2 100644 --- a/tools/mix_data_test_mot17.py +++ b/tools/mix_data_test_mot17.py @@ -148,4 +148,5 @@ mix_json['annotations'] = ann_list mix_json['videos'] = video_list mix_json['categories'] = category_list +os.makedirs('datasets/mix_det/annotations', exist_ok=True) json.dump(mix_json, open('datasets/mix_det/annotations/train.json','w')) From 90bb206bd3c322337c05c49a24062b2c31209114 Mon Sep 17 00:00:00 2001 From: Sungguk Cha Date: Fri, 29 Jul 2022 11:29:52 +0900 Subject: [PATCH 3/3] Update mix_data_test_mot20.py --- tools/mix_data_test_mot20.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/mix_data_test_mot20.py b/tools/mix_data_test_mot20.py index e7bbafc2..68c7e336 100644 --- a/tools/mix_data_test_mot20.py +++ b/tools/mix_data_test_mot20.py @@ -88,4 +88,5 @@ mix_json['annotations'] = ann_list mix_json['videos'] = video_list mix_json['categories'] = category_list -json.dump(mix_json, open('datasets/mix_mot20_ch/annotations/train.json','w')) \ No newline at end of file +os.makedirs('datasets/mix_mot20_ch/annotations', exist_ok=True) +json.dump(mix_json, open('datasets/mix_mot20_ch/annotations/train.json','w'))