(path)
| 8 | from src.util import divide_n |
| 9 | |
| 10 | def get_sub_path(path): |
| 11 | sub_path = [] |
| 12 | if isinstance(path, List): |
| 13 | for p in path: |
| 14 | if os.path.isdir(p): |
| 15 | for file in os.listdir(p): |
| 16 | sub_path.append(os.path.join(p, file)) |
| 17 | else: |
| 18 | continue |
| 19 | else: |
| 20 | for file in os.listdir(path): |
| 21 | sub_path.append(os.path.join(path, file)) |
| 22 | return sub_path |
| 23 | |
| 24 | def resize(input): |
| 25 | dimension = input.shape |