(file_list_path: str)
| 14 | |
| 15 | |
| 16 | def load_file_list(file_list_path: str) -> List[Dict[str, str]]: |
| 17 | files = [] |
| 18 | with open(file_list_path, "r") as fin: |
| 19 | for line in fin: |
| 20 | path = line.strip() |
| 21 | if path: |
| 22 | files.append({"image_path": path, "prompt": ""}) |
| 23 | return files |
| 24 | |
| 25 | |
| 26 | def load_file_metas(file_metas: List[Dict[str, str]]) -> List[Dict[str, str]]: |