diff --git a/README.md b/README.md index 50ef11d..19969a5 100644 --- a/README.md +++ b/README.md @@ -60,37 +60,37 @@ The derendered scenes do not need any further preprocessing and can be diretly u To preprocess the dialogs, follow these steps: -- ``cd preprocess_dialogs`` +- ```cd preprocess_dialogs``` For the stack encoder, execute -- ``python preprocess.py --input_dialogs_json --input_vocab_json '' --output_vocab_json --output_h5_file --split --mode stack`` +- ```python preprocess.py --input_dialogs_json --input_vocab_json '' --output_vocab_json --output_h5_file --split --mode stack``` For the concat encoder, execute -- ``python preprocess.py --input_dialogs_json --input_vocab_json '' --output_vocab_json --output_h5_file --split --mode concat`` +- ```python preprocess.py --input_dialogs_json --input_vocab_json '' --output_vocab_json --output_h5_file --split --mode concat``` # Training First, change directory -- ``cd ../prog_generator`` +- ```cd ../prog_generator``` ## Caption Program Parser To train the caption parser, execute -- ``python train_caption_parser.py --mode train --run_dir --res_path --dataPathTr --dataPathVal --dataPathTest --vocab_path `` +- ```python train_caption_parser.py --mode train --run_dir --res_path --dataPathTr --dataPathVal --dataPathTest --vocab_path ``` ## Question Program Parser To train the question program parser with the stack encoder, execute -- ``python train_question_parser.py --mode train --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type 2`` +- ```python train_question_parser.py --mode train --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type 2``` To train the question program parser with the concat encoder, execute -- ``python train_question_parser.py --mode train --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type 1`` +- ```python train_question_parser.py --mode train --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type 1``` ## Baselines @@ -102,11 +102,11 @@ To train the question program parser with the concat encoder, execute To evaluate using the *Hist+GT* scheme, execute -- ``python train_question_parser.py --mode test_with_gt --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type <1/2> --questionNetPath --captionNetPath --dialogLen --last_n_rounds `` +- ```python train_question_parser.py --mode test_with_gt --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type <1/2> --questionNetPath --captionNetPath --dialogLen --last_n_rounds ``` To evaluate using the *Hist+Pred* scheme, execute -- ``python train_question_parser.py --mode test_with_pred --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type <1/2> --questionNetPath --captionNetPath --dialogLen --last_n_rounds `` +- ```python train_question_parser.py --mode test_with_pred --run_dir --text_log_dir --dataPathTr --dataPathVal --dataPathTest --scenePath --vocab_path --encoder_type <1/2> --questionNetPath --captionNetPath --dialogLen --last_n_rounds ``` # Results