MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _find_run_dir_for_checkpoint

Function _find_run_dir_for_checkpoint

scripts/hora/export_onnx.py:79–83  ·  view source on GitHub ↗
(ckpt_path: Path)

Source from the content-addressed store, hash-verified

77
78
79def _find_run_dir_for_checkpoint(ckpt_path: Path) -> Path:
80 # expected: outputs/hora/revo3_right/<run_name>/stage{1,2}_nn/*.pth|*.ckpt
81 if ckpt_path.parent.name.endswith("_nn"):
82 return ckpt_path.parent.parent
83 return ckpt_path.parent
84
85
86def _load_config(path: Path | None) -> Any | None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected