-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VQA2, VisualGenome, FBResNet152 (for pytorch)
Factory - vqa models, convnets and vqa datasets can be created via factories VQA 2.0 - VQA2(AbstractVQA) added VisualGenome - VisualGenome(AbstractVQADataset) added for merging with VQA datasets - VisualGenomeImages(AbstractImagesDataset) added to extract features - `extract.py` now allows to extract VisualGenome features Variable features size - `extract.py` now allows to extract from images of size != 448 via cli arg `--size` - FeaturesDataset now have an optional `opt['size']` parameter FBResNet152 - `convnets.py` provides support for external pretrained-models as well as ResNets from torchvision - especially FBResNet152 is the porting of fbresnet152torch from torch7 used until now
- Loading branch information
Showing
23 changed files
with
1,070 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
logs: | ||
dir_logs: logs/vqa2/default | ||
vqa: | ||
dataset: VQA2 | ||
dir: data/vqa2 | ||
trainsplit: train | ||
nans: 2000 | ||
maxlength: 26 | ||
minwcount: 0 | ||
nlp: mcb | ||
pad: right | ||
samplingans: True | ||
coco: | ||
dir: data/coco | ||
arch: fbresnet152 | ||
mode: noatt | ||
size: 448 | ||
model: | ||
arch: MLBNoAtt | ||
seq2vec: | ||
arch: skipthoughts | ||
dir_st: data/skip-thoughts | ||
type: UniSkip | ||
dropout: 0.25 | ||
fixed_emb: False | ||
fusion: | ||
dim_v: 2048 | ||
dim_q: 2400 | ||
dim_h: 1200 | ||
dropout_v: 0.5 | ||
dropout_q: 0.5 | ||
activation_v: tanh | ||
activation_q: tanh | ||
classif: | ||
activation: tanh | ||
dropout: 0.5 | ||
optim: | ||
lr: 0.0001 | ||
batch_size: 512 | ||
epochs: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
logs: | ||
dir_logs: logs/vqa2/mlb_att_trainval | ||
vqa: | ||
dataset: VQA2 | ||
dir: data/vqa2 | ||
trainsplit: trainval | ||
nans: 2000 | ||
maxlength: 26 | ||
minwcount: 0 | ||
nlp: mcb | ||
pad: right | ||
samplingans: True | ||
coco: | ||
dir: data/coco | ||
arch: fbresnet152 | ||
mode: att | ||
size: 448 | ||
model: | ||
arch: MLBAtt | ||
dim_v: 2048 | ||
dim_q: 2400 | ||
seq2vec: | ||
arch: skipthoughts | ||
dir_st: data/skip-thoughts | ||
type: BayesianUniSkip | ||
dropout: 0.25 | ||
fixed_emb: False | ||
attention: | ||
nb_glimpses: 4 | ||
dim_h: 1200 | ||
dropout_v: 0.5 | ||
dropout_q: 0.5 | ||
dropout_mm: 0.5 | ||
activation_v: tanh | ||
activation_q: tanh | ||
activation_mm: tanh | ||
fusion: | ||
dim_h: 1200 | ||
dropout_v: 0.5 | ||
dropout_q: 0.5 | ||
activation_v: tanh | ||
activation_q: tanh | ||
classif: | ||
activation: tanh | ||
dropout: 0.5 | ||
optim: | ||
lr: 0.0001 | ||
batch_size: 128 | ||
epochs: 100 |
Oops, something went wrong.