diff --git a/check_exist.py b/check_exist.py new file mode 100644 index 0000000..353f1c3 --- /dev/null +++ b/check_exist.py @@ -0,0 +1,12 @@ +import os + +path1 = r"D:\Deep_Learning\SC_SfMLearner\esophagus\dump\train.txt" +path2 = r"D:\Deep_Learning\SC_SfMLearner\esophagus\dump" + +with open(path1, "r") as f: + lines = f.readlines() + for line in lines: + element = line.replace('\n', '').split(' ') + img_path = os.path.join(path2, element[0], element[1] + '.jpg') + if not os.path.exists(img_path): + print(img_path)