From 6a90469a788ea5dd1c03d2e179ef3c058a5f32a7 Mon Sep 17 00:00:00 2001 From: Amlan Kar Date: Fri, 17 Aug 2018 09:23:37 -0400 Subject: [PATCH 1/2] Fix commands in README --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7af7156..2f2b8b1 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ from the command line. This image directory MUST contain the pre-defined images ``` python Scripts/prediction/generate_annotation.py --exp --reload --output_dir ``` +- If you are testing a RL checkpoint, then the experiment file would correspond be the RL experiment file, and similarly for other stages of the model - You can check predicted/GT masks for every instance in the output_dir - To get scores, run ``` @@ -127,7 +128,7 @@ python Scripts/get_scores.py --pred --output --json_dir --output_dir +python Scripts/data/change_paths.py --city_dir --json_dir --out_dir ``` ### Custom Dataset @@ -144,7 +145,7 @@ To train on your custom datasets, you have one of two options: - Edit the experiment file at Experiments/mle.json and change paths for your machine - From the root directory, run ``` -python Scripts/train/train_ce.py --exp Experiments/mle.json --reload +python Scripts/train/train_ce.py --exp Experiments/mle.json --resume ``` - You can view progress on Tensorboard (logs are at /logs/) @@ -153,7 +154,7 @@ python Scripts/train/train_ce.py --exp Experiments/mle.json --reload +python Scripts/train/train_rl.py --exp Experiments/mle.json --resume ``` - **Note** - You might have to play with hyperparameters a bit to achieve stable training, especially temperature, lr and lr\_decay @@ -162,7 +163,7 @@ python Scripts/train/train_rl.py --exp Experiments/mle.json --reload +python Scripts/train/train_evaluator.py --exp Experiments/evaluator.json --resume ``` ### Training GGNN @@ -170,5 +171,5 @@ python Scripts/train/train_evaluator.py --exp Experiments/evaluator.json --reloa - In the experiment file, set xe\_initializer to the best Evaluator model - From the root directory, run ``` -python Scripts/train/train_ggnn.py --exp Experiments/ggnn.json --reload +python Scripts/train/train_ggnn.py --exp Experiments/ggnn.json --resume ``` From 10b6c7327f782f1982070a6fbaabd714572f170b Mon Sep 17 00:00:00 2001 From: Amlan Kar Date: Wed, 24 Jul 2019 15:49:55 -0400 Subject: [PATCH 2/2] Fixes #31 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f2b8b1..bc61575 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ python Scripts/train/train_ce.py --exp Experiments/mle.json --resume +python Scripts/train/train_rl.py --exp Experiments/rl.json --resume ``` - **Note** - You might have to play with hyperparameters a bit to achieve stable training, especially temperature, lr and lr\_decay