Skip to content

Commit

Permalink
Remove unnecessary double-load of config_json.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-attunely committed Jul 17, 2024
1 parent f37d0d9 commit 8b5212d
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 8b5212d

Please sign in to comment.