Skip to content

Commit 4c37192

Browse files
committed
readme added
1 parent 0dc0048 commit 4c37192

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tutorials/09 - Image Captioning/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#### 1. Clone the repositories
55
```bash
66
$ git clone https://github.com/pdollar/coco.git
7+
$ cd coco/PythonAPI/
8+
$ make
9+
$ cd ../../
710
$ git clone https://github.com/yunjey/pytorch-tutorial.git
811
$ cd pytorch-tutorial/tutorials/09 - Image Captioning
912
```
@@ -19,7 +22,8 @@ $ ./donwload.sh
1922
#### 3. Preprocessing
2023

2124
```bash
22-
$ python vocab.py
25+
$ python build_vocab.py
26+
$ python resize.py
2327
```
2428

2529
#### 4. Train the model
@@ -32,11 +36,11 @@ $ python train.py
3236

3337

3438
```bash
35-
$ python sample.py --image=sample_image.jpg
39+
$ python sample.py --image='path_for_image'
3640
```
3741

3842
<br>
3943

4044
## Pretrained model
4145

42-
If you do not want to train the model yourself, you can use a pretrained model. I have provided the pretrained model as a zip file. You can download the file [here](https://www.dropbox.com/s/cngzozkk73imjdh/trained_model.zip?dl=0) and extract it to `model` directory.
46+
If you do not want to train the model yourself, you can use a pretrained model. I have provided the pretrained model as a zip file. You can download the file [here](https://www.dropbox.com/s/btubjo73dc953zo/trained_model.egg?dl=0) and extract it to `./models/` directory.

0 commit comments

Comments
 (0)