()
| 3 | |
| 4 | |
| 5 | def split_GT(): |
| 6 | src_root = '' |
| 7 | dst_root = '' |
| 8 | |
| 9 | for img_name in os.listdir(src_root): |
| 10 | sub_class = img_name.split('-')[3] |
| 11 | |
| 12 | src_img_path = os.path.join(src_root, img_name) |
| 13 | dst_img_path = os.path.join(dst_root, 'COD10K-'+sub_class, "GT", img_name) |
| 14 | os.makedirs(os.path.join(dst_root, 'COD10K-'+sub_class, "GT"), exist_ok=True) |
| 15 | |
| 16 | shutil.copyfile(src_img_path, dst_img_path) |
| 17 | |
| 18 | |
| 19 | def split_pred(): |
nothing calls this directly
no outgoing calls
no test coverage detected