From e1b504bca41a9793ed7e88ef14f2e2cbd85724f2 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Tue, 8 Sep 2020 23:14:23 +0200 Subject: IAM datasets implemented. --- src/training/prepare_experiments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/training/prepare_experiments.py') diff --git a/src/training/prepare_experiments.py b/src/training/prepare_experiments.py index 4c3f9ba..e00540c 100644 --- a/src/training/prepare_experiments.py +++ b/src/training/prepare_experiments.py @@ -9,14 +9,14 @@ import yaml def run_experiments(experiments_filename: str) -> None: """Run experiment from file.""" - with open(experiments_filename) as f: + with open(experiments_filename, "r") as f: experiments_config = yaml.safe_load(f) num_experiments = len(experiments_config["experiments"]) for index in range(num_experiments): experiment_config = experiments_config["experiments"][index] experiment_config["experiment_group"] = experiments_config["experiment_group"] - cmd = f"python training/run_experiment.py --gpu=-1 --save --experiment_config='{json.dumps(experiment_config)}'" + cmd = f"python training/run_experiment.py --gpu=-1 --save '{json.dumps(experiment_config)}'" print(cmd) -- cgit v1.2.3-70-g09d2