Skip to content

Commit 2537490

Browse files
authored
Merge pull request yunjey#139 from justinshenk/patch-1
Remove dollar-sign prompt from code blocks
2 parents 56bba93 + d25b573 commit 2537490

File tree

1 file changed

+15
-15
lines changed
  • tutorials/03-advanced/image_captioning

1 file changed

+15
-15
lines changed

tutorials/03-advanced/image_captioning/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,41 @@ In the test phase, the encoder part is almost same as the training phase. The on
1616

1717
#### 1. Clone the repositories
1818
```bash
19-
$ git clone https://github.com/pdollar/coco.git
20-
$ cd coco/PythonAPI/
21-
$ make
22-
$ python setup.py build
23-
$ python setup.py install
24-
$ cd ../../
25-
$ git clone https://github.com/yunjey/pytorch-tutorial.git
26-
$ cd pytorch-tutorial/tutorials/03-advanced/image_captioning/
19+
git clone https://github.com/pdollar/coco.git
20+
cd coco/PythonAPI/
21+
make
22+
python setup.py build
23+
python setup.py install
24+
cd ../../
25+
git clone https://github.com/yunjey/pytorch-tutorial.git
26+
cd pytorch-tutorial/tutorials/03-advanced/image_captioning/
2727
```
2828

2929
#### 2. Download the dataset
3030

3131
```bash
32-
$ pip install -r requirements.txt
33-
$ chmod +x download.sh
34-
$ ./download.sh
32+
pip install -r requirements.txt
33+
chmod +x download.sh
34+
./download.sh
3535
```
3636

3737
#### 3. Preprocessing
3838

3939
```bash
40-
$ python build_vocab.py
41-
$ python resize.py
40+
python build_vocab.py
41+
python resize.py
4242
```
4343

4444
#### 4. Train the model
4545

4646
```bash
47-
$ python train.py
47+
python train.py
4848
```
4949

5050
#### 5. Test the model
5151

5252
```bash
53-
$ python sample.py --image='png/example.png'
53+
python sample.py --image='png/example.png'
5454
```
5555

5656
<br>

0 commit comments

Comments
 (0)