"tools/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "0d524bc156d77f27eeda02ca604cd6d2aff17e12"
Commit bd82338e authored by Geoffrey Yu's avatar Geoffrey Yu
Browse files

added common features that need to be preserved for both gt and input features

parent 093603ee
...@@ -121,9 +121,11 @@ def process_tensors_from_config(tensors, common_cfg, mode_cfg): ...@@ -121,9 +121,11 @@ def process_tensors_from_config(tensors, common_cfg, mode_cfg):
"""Based on the config, apply filters and transformations to the data.""" """Based on the config, apply filters and transformations to the data."""
GROUNDTRUTH_FEATURES=['all_atom_mask', 'all_atom_positions'] GROUNDTRUTH_FEATURES=['all_atom_mask', 'all_atom_positions']
COMMON_FEATURES=['asym_id','sym_id','entity_id']
input_tensors = {k:v for k,v in tensors.items() if k not in GROUNDTRUTH_FEATURES} input_tensors = {k:v for k,v in tensors.items() if k not in GROUNDTRUTH_FEATURES}
gt_tensors = {k:v for k,v in tensors.items() if k in GROUNDTRUTH_FEATURES} gt_tensors = {k:v for k,v in tensors.items() if k in GROUNDTRUTH_FEATURES or k in COMMON_FEATURES}
gt_tensors['aatype'] = tensors['aatype'].to(torch.long) gt_tensors['aatype'] = tensors['aatype'].to(torch.long)
del tensors del tensors
ensemble_seed = random.randint(0, torch.iinfo(torch.int32).max) ensemble_seed = random.randint(0, torch.iinfo(torch.int32).max)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment