Skip to content

Commit

Permalink
Merge pull request #470 from rkosai/main
Browse files Browse the repository at this point in the history
Remove unnecessary double-load of config_json.
  • Loading branch information
jnwei authored Jul 18, 2024
2 parents c48f850 + 8b5212d commit 6f63267
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions run_pretrained_openfold.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,7 @@ def main(args):
use_deepspeed_evoformer_attention=args.use_deepspeed_evoformer_attention,
)

if args.experiment_config_json:
with open(args.experiment_config_json, 'r') as f:
custom_config_dict = json.load(f)
config.update_from_flattened_dict(custom_config_dict)

if args.experiment_config_json:
if args.experiment_config_json:
with open(args.experiment_config_json, 'r') as f:
custom_config_dict = json.load(f)
config.update_from_flattened_dict(custom_config_dict)
Expand Down

0 comments on commit 6f63267

Please sign in to comment.