Commit 2da285aa authored by Geoffrey Yu's avatar Geoffrey Yu
Browse files

fixed the return issue in np_example_to_features when training monomer

parent cb43a5b3
...@@ -92,14 +92,19 @@ def np_example_to_features( ...@@ -92,14 +92,19 @@ def np_example_to_features(
) )
with torch.no_grad(): with torch.no_grad():
if(not is_multimer): if is_multimer:
features = input_pipeline.process_tensors_from_config( features,gt_features = input_pipeline_multimer.process_tensors_from_config(
tensor_dict, tensor_dict,
cfg.common, cfg.common,
cfg[mode], cfg[mode],
) )
if mode == 'train':
return {k: v for k, v in features.items()}, gt_features
else: else:
features,gt_features = input_pipeline_multimer.process_tensors_from_config( return {k: v for k, v in features.items()}
else:
features = input_pipeline.process_tensors_from_config(
tensor_dict, tensor_dict,
cfg.common, cfg.common,
cfg[mode], cfg[mode],
...@@ -120,7 +125,7 @@ def np_example_to_features( ...@@ -120,7 +125,7 @@ def np_example_to_features(
dtype=torch.float32, dtype=torch.float32,
) )
return {k: v for k, v in features.items()}, gt_features return {k: v for k, v in features.items()}
class FeaturePipeline: class FeaturePipeline:
......
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