(args: argparse.Namespace)
| 444 | return unfinished_configs |
| 445 | |
| 446 | def dump_config(args: argparse.Namespace) -> None: |
| 447 | config_file = Path(args.result_dir) / "config.json" |
| 448 | if not config_file.exists(): |
| 449 | with open(config_file, "w") as f: |
| 450 | json.dump(vars(args), f, indent=4) |
| 451 | logger.info(f"Dump config to {config_file}") |
| 452 | |
| 453 | |
| 454 | if __name__ == "__main__": |