From a5999d406c1fd079b2b753bf84ffc2b95b19b700 Mon Sep 17 00:00:00 2001 From: p18530742 <80907588@qq.com> Date: Thu, 24 Jun 2021 18:43:02 +0800 Subject: [PATCH] Delete 'resize_dataset.py' --- resize_dataset.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 resize_dataset.py diff --git a/resize_dataset.py b/resize_dataset.py deleted file mode 100644 index 0641a0c..0000000 --- a/resize_dataset.py +++ /dev/null @@ -1,12 +0,0 @@ -import os -import json -root = "Tusimple/" -lable_str = open("Tusimple/test_label.json", "r", encoding="utf8").readlines() -lable_json = [json.loads(line) for line in lable_str] - -with open("{}/test_label.json".format(root), "w", encoding="utf8") as fp: - for label,s in zip(lable_json, lable_str): - path = root + label["raw_file"] - # print(path) - if os.path.exists(path): - fp.write(s)