You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have already pre-processed all the COCO images (both train and test sets) using the VGG-16, VGG-19-BN, and ResNet-152 models. To download them, please go into the `image_embeddings` directory and run `make <model>`.</br>
20
21
Here `<model>` can be either `vgg16`, `vgg19_bn` or `resnet152` depending on which model's embeddings you need. E.g. `make resnet152`
21
22
22
23
Alternatively, you can find them [here](https://1drv.ms/f/s!Au18pri6pxSNlop81AhX4bATqy1VJA).
23
24
24
-
25
25
## Running
26
26
27
27
### Training
28
28
29
29
To run the training and evaluation code with default values, just type
30
30
31
-
```
31
+
```shell
32
32
make
33
33
```
34
34
35
35
If you wish to only run the training code, you can run
36
-
```
36
+
37
+
```shell
37
38
make train
38
39
```
39
40
40
41
If you want to use the raw RGB images from COCO, you can type
42
+
41
43
```shell
42
44
make raw_images
43
45
```
46
+
44
47
This takes the same arguments as `make train`.
45
48
46
49
You can get a list of options with `make options` or `python main.py -h`.
@@ -49,7 +52,6 @@ Check out the `Makefile` to get an idea of how to run the code.
49
52
50
53
> *NOTE* The code will take care of all the text preprocessing. Just sit back and relax.
51
54
52
-
53
55
The minimum arguments required are:
54
56
55
57
1. The VQA train annotations dataset
@@ -61,15 +63,15 @@ The minimum arguments required are:
61
63
62
64
### Evaluation
63
65
64
-
Evaluating the performance of the model on a fine-grained basis is important. Thus this repo supports evaluating
65
-
answers to questions based on answer type (e.g. "yes/no" questions).
66
+
Evaluating the performance of the model on a fine-grained basis is important. Thus this repo supports evaluating answers to questions based on answer type (e.g. "yes/no" questions).
66
67
67
68
To evaluate the model, run
69
+
68
70
```shell
69
71
make evaluate
70
72
```
71
73
72
-
You are required to pass in the `--resume` argument to point to the trained model weights. The other arguments are
74
+
You are required to pass in the `--resume` argument to point to the trained model weights. The other arguments are
73
75
the same as in training.
74
76
75
77
### Demo
@@ -86,7 +88,6 @@ You can use your own image or question:
86
88
python demo.py demo_img.jpg "what room is this?"
87
89
```
88
90
89
-
90
91
## Results
91
92
92
93
**NOTE** We train and evaluate on the balanced datasets.
0 commit comments