generated from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flickr30k_blip-base_v2-0.yaml
65 lines (51 loc) · 1.43 KB
/
flickr30k_blip-base_v2-0.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
# @package _global_
# to execute this experiment run:
# python train.py experiment=example
defaults:
- override /data: flickr30k
- override /model: blip_base_pretrained
- override /callbacks: default
- override /trainer: default
- override /logger: wandb
# all parameters below will be merged with parameters from default configurations set above
# this allows you to overwrite only specified parameters
tags: ["v1", "flickr30k", "blip_base"]
seed: 42
trainer:
min_epochs: 5
max_epochs: 10
gradient_clip_val: 0.0
model:
optimizer:
_target_: torch.optim.AdamW
_partial_: true
lr: 0.000001
weight_decay: 0.05
scheduler:
_target_: torch.optim.lr_scheduler.CosineAnnealingLR
_partial_: true
T_max: ${trainer.max_epochs}
eta_min: 0.0000001
net:
_target_: transformers.AutoModelForVision2Seq.from_pretrained
pretrained_model_name_or_path: Salesforce/blip-image-captioning-base
cache_dir: models/huggingface
processor:
_target_: transformers.AutoProcessor.from_pretrained
pretrained_model_name_or_path: Salesforce/blip-image-captioning-base
cache_dir: models/huggingface
compile: false
hf_repo_id: tanthinhdt/blip-base_flickr30k
data:
use_all_comments: False
comment_number: 0
padding: longest
train_val_test_split: [0.7, 0.3]
batch_size: 16
num_workers: 8
logger:
wandb:
name: flickr30k_blip-base_v2-0
id: null
project: "IMCAP"
tags: ${tags}