forked from drprojects/superpoint_transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscannet_11g.yaml
61 lines (50 loc) · 1.71 KB
/
scannet_11g.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
# @package _global_
# to execute this experiment run:
# python train.py experiment=semantic/scannet_11g
# This configuration allows training SPT on a single 11G GPU, with a
# training procedure comparable with the default
# experiment/semantic/scannet configuration.
# Among the multiple ways of reducing memory impact, we choose here to
# - reduce the number of samples in each batch (facilitates training
# on smaller GPUs)
# To keep the total number of training steps consistent with the default
# configuration, while keeping informative gradient despite the smaller
# batches, we use gradient accumulation and reduce the number of epochs.
# DISCLAIMER: the tiling procedure may increase the preprocessing time
# (more raw data reading steps), and slightly reduce mode performance
# (less diversity in the spherical samples)
defaults:
- override /datamodule: semantic/scannet.yaml
- override /model: semantic/spt-2.yaml
- override /trainer: gpu.yaml
# all parameters below will be merged with parameters from default configurations set above
# this allows you to overwrite only specified parameters
datamodule:
dataloader:
batch_size: 1
callbacks:
gradient_accumulator:
scheduling:
0:
4 # accumulate gradient every 4 batches, to make up for reduced batch size
trainer:
max_epochs: 100 # to keep the same number of steps -> epochs unchanged
check_val_every_n_epoch: 2
model:
optimizer:
lr: 0.01
weight_decay: 1e-4
scheduler:
num_warmup: 2
_node_mlp_out: 64
_h_edge_mlp_out: 64
_down_dim: [ 128, 128, 128, 128 ]
_up_dim: [ 128, 128, 128 ]
net:
no_ffn: False
down_ffn_ratio: 1
down_num_heads: 32
logger:
wandb:
project: "spt_scannet"
name: "SPT-128"