Skip to content

Commit

Permalink
Add finishing touch on single-seq support
Browse files Browse the repository at this point in the history
  • Loading branch information
amorehead committed Jan 18, 2025
1 parent 6715388 commit f9c216e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posebench/analysis/inference_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pandas as pd
import rootutils
from beartype.typing import List, Tuple
from omegaconf import DictConfig
from omegaconf import DictConfig, open_dict
from posebusters import PoseBusters
from rdkit import Chem
from rdkit.Chem import AllChem, DataStructs, rdFingerprintGenerator
Expand Down Expand Up @@ -873,6 +873,10 @@ def main(cfg: DictConfig):
:param cfg: Configuration dictionary from the hydra YAML file.
"""
with open_dict(cfg):
# NOTE: besides their output directories, single-sequence baselines are treated like their multi-sequence counterparts
cfg.method = cfg.method.removesuffix("_ss")

for config in ["", "_relaxed"]:
output_dir = cfg.output_dir + config
bust_results_filepath = Path(output_dir) / "bust_results.csv"
Expand Down

0 comments on commit f9c216e

Please sign in to comment.