From d25b573560d6a1a6295470b7a78e9f4dc142e7e5 Mon Sep 17 00:00:00 2001 From: Justin Shenk Date: Sat, 3 Nov 2018 20:08:10 +0100 Subject: [PATCH] Remove dollar-sign prompt from code blocks Improves sharing code without affecting readability --- .../03-advanced/image_captioning/README.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tutorials/03-advanced/image_captioning/README.md b/tutorials/03-advanced/image_captioning/README.md index eec7b28..409b62b 100644 --- a/tutorials/03-advanced/image_captioning/README.md +++ b/tutorials/03-advanced/image_captioning/README.md @@ -16,41 +16,41 @@ In the test phase, the encoder part is almost same as the training phase. The on #### 1. Clone the repositories ```bash -$ git clone https://github.com/pdollar/coco.git -$ cd coco/PythonAPI/ -$ make -$ python setup.py build -$ python setup.py install -$ cd ../../ -$ git clone https://github.com/yunjey/pytorch-tutorial.git -$ cd pytorch-tutorial/tutorials/03-advanced/image_captioning/ +git clone https://github.com/pdollar/coco.git +cd coco/PythonAPI/ +make +python setup.py build +python setup.py install +cd ../../ +git clone https://github.com/yunjey/pytorch-tutorial.git +cd pytorch-tutorial/tutorials/03-advanced/image_captioning/ ``` #### 2. Download the dataset ```bash -$ pip install -r requirements.txt -$ chmod +x download.sh -$ ./download.sh +pip install -r requirements.txt +chmod +x download.sh +./download.sh ``` #### 3. Preprocessing ```bash -$ python build_vocab.py -$ python resize.py +python build_vocab.py +python resize.py ``` #### 4. Train the model ```bash -$ python train.py +python train.py ``` #### 5. Test the model ```bash -$ python sample.py --image='png/example.png' +python sample.py --image='png/example.png' ```