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)