-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathvqa_base_resnet50.json
executable file
·52 lines (52 loc) · 1.39 KB
/
vqa_base_resnet50.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"train_datasets": [
{
"name": "vqa",
"txt": ["/txt/vqa/vqa_k_trainval.jsonl",
"/txt/vqa/vg_k_trainval.jsonl"],
"img": "/img/coco_train2014_val2014"
}
],
"val_datasets": [
{
"name": "vqa",
"txt": "/txt/vqa/vqa_k_test.jsonl",
"img": "/img/coco_train2014_val2014"
}
],
"ans2label_path": "/txt/vqa/trainval_ans2label.json",
"max_txt_len": 20,
"max_img_size": 768,
"img_pixel_mean": [123.675, 116.28, 103.53],
"img_pixel_std": [1.0, 1.0, 1.0],
"img_input_format": "BGR",
"max_n_example_per_group": 2,
"model_config": "src/configs/base_model.json",
"detectron2_model_cfg": "src/configs/detectron2_configs/R-50-grid.yaml",
"e2e_weights_path": "/pretrain/clipbert_image_text_pretrained.pt",
"detectron2_weights_path": null,
"bert_weights_path": null,
"tokenizer_dir": "/pretrain/bert-base-uncased/",
"output_dir": "/storage/vqa_default",
"train_batch_size": 32,
"val_batch_size": 32,
"gradient_accumulation_steps": 1,
"num_train_epochs": 5,
"min_valid_steps": 100,
"num_valid": 30,
"learning_rate": 1e-4,
"weight_decay": 1e-3,
"decay": "linear",
"optim": "adamw",
"betas": [0.9, 0.98],
"dropout": 0.1,
"grad_norm": 2.0,
"cnn_learning_rate": 1e-4,
"cnn_weight_decay": 1e-3,
"cnn_lr_decay": "linear",
"seed":42,
"fp16": 1,
"classifier": "mlp",
"cls_hidden_scale": 2,
"num_labels": 3129
}