-
Notifications
You must be signed in to change notification settings - Fork 5
/
pretrain_shapenet.yaml
58 lines (54 loc) · 1.23 KB
/
pretrain_shapenet.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
optimizer : {
type: AdamW,
kwargs: {
lr : 0.0005,
weight_decay : 0.05
}}
scheduler: {
type: CosLR,
kwargs: {
epochs: 300,
initial_epochs : 3
}}
dataset : {
train : { _base_: cfgs/dataset_configs/ShapeNet-55.yaml,
others: {subset: 'train', npoints: 1024, whole: True}},
val : { _base_: cfgs/dataset_configs/ModelNet40.yaml,
others: {subset: 'test'}},
extra_train : { _base_: cfgs/dataset_configs/ModelNet40.yaml,
others: {subset: 'train'}}}
model : {
NAME: MaskPoint,
m: 0.999,
T: 0.07,
K: 16384,
pos_embed_hidden_dim: 128,
transformer_config: {
mask_ratio: 0.90,
trans_dim: 384,
depth: 12,
dec_depth: 1,
use_sigmoid: true,
use_moco_loss: false,
query_loss_weight: 1.0,
moco_loss_weight: 0.01,
use_focal_loss: true,
focal_loss_alpha: 0.25,
focal_loss_gamma: 2,
ambiguous_threshold: -1,
ambiguous_dynamic_threshold: 256,
dec_query_mode: points, # [center, points]
dec_query_real_num: 256,
dec_query_fake_num: 256,
drop_path_rate: 0.1,
cls_dim: 512,
num_heads: 6,
group_size: 32,
num_group: 64,
encoder_dims: 256,
}
}
total_bs : 128
step_per_update : 1
grad_norm_clip : 10
max_epoch : 300