-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
49 lines (48 loc) · 1.19 KB
/
config.py
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
from omegaconf import OmegaConf
cfg = {
"description": "Final Model",
"precision": "32",
"num_devices": 1,
"num_epochs": 10,
"save_log_weights_interval": 1,
"train_metric_interval": 1,
"inference_epochs": [],
"model_checkpoint_at": "checkpoints",
"img_size": 1024,
"out_dir": "/",
"focal_wt": 20,
"num_tokens": 0,
"result_dir": "",
"opt": {
"learning_rate": 4e-4,
"auto_lr": False,
"weight_decay": 0.01,
"decay_factor": 1/2,
"steps": [5],
},
"model": {
"type": "vit_l",
"checkpoint": "sam_vit_l_0b3195.pth",
"requires_grad": {
"image_encoder": False,
"prompt_encoder": False,
"mask_decoder": False,
"propagation_module": True,
},
"multimask_output": True,
"propagation_ckpt": None,
},
"dataset": {
"name": "moca",
"root_dir": "raw/",
"stage1": False,
"train_batch_size": 4,
"max_num_obj": 2,
"num_frames": 3,
"max_jump": 1,
"num_workers": 4,
"pin_memory": True,
"persistent_workers": True,
},
}
cfg = OmegaConf.create(cfg)