File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 22# Following code curated for PoseBench: (https://github.com/BioinfoMachineLearning/PoseBench)
33# -------------------------------------------------------------------------------------------------------------------------------------
44
5+ import copy
56import logging
67import os
78from pathlib import Path
1112import numpy as np
1213import rootutils
1314from beartype .typing import Literal
14- from omegaconf import DictConfig
15+ from omegaconf import DictConfig , open_dict
1516from tqdm import tqdm
1617
1718rootutils .setup_root (__file__ , indicator = ".project-root" , pythonpath = True )
@@ -297,6 +298,12 @@ def main(cfg: DictConfig):
297298
298299 :param cfg: Configuration dictionary from the hydra YAML file.
299300 """
301+ with open_dict (cfg ):
302+ # NOTE: besides their output directories, single-sequence baselines are treated like their multi-sequence counterparts
303+ output_dir = copy .deepcopy (cfg .output_dir )
304+ cfg .method = cfg .method .removesuffix ("_ss" )
305+ cfg .output_dir = output_dir
306+
300307 input_data_dir = Path (cfg .input_data_dir )
301308 for config in ["" , "_relaxed" ]:
302309 output_dir = Path (cfg .output_dir + config )
You can’t perform that action at this time.
0 commit comments