File tree 1 file changed +15
-15
lines changed
tutorials/03-advanced/image_captioning
1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -16,41 +16,41 @@ In the test phase, the encoder part is almost same as the training phase. The on
16
16
17
17
#### 1. Clone the repositories
18
18
``` 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/
27
27
```
28
28
29
29
#### 2. Download the dataset
30
30
31
31
``` 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
35
35
```
36
36
37
37
#### 3. Preprocessing
38
38
39
39
``` bash
40
- $ python build_vocab.py
41
- $ python resize.py
40
+ python build_vocab.py
41
+ python resize.py
42
42
```
43
43
44
44
#### 4. Train the model
45
45
46
46
``` bash
47
- $ python train.py
47
+ python train.py
48
48
```
49
49
50
50
#### 5. Test the model
51
51
52
52
``` bash
53
- $ python sample.py --image=' png/example.png'
53
+ python sample.py --image=' png/example.png'
54
54
```
55
55
56
56
<br >
You can’t perform that action at this time.
0 commit comments