(cfg, root)
| 107 | return latest_path |
| 108 | |
| 109 | def update_data_root(cfg, root): |
| 110 | cfg.root = root |
| 111 | for key, value in cfg.items(): |
| 112 | if isinstance(value, dict) and "root" in value: |
| 113 | cfg[key]["root"] = root |
| 114 | |
| 115 | def get_test_pipeline_cfg(cfg: Union[str, ConfigDict]) -> ConfigDict: |
| 116 | """Get the test dataset pipeline from entire config. |