forked from yangyanli/PointCNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scannet_x8_2048_fps.py
68 lines (47 loc) · 1.5 KB
/
scannet_x8_2048_fps.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/python3
import math
num_class = 21
sample_num = 2048
batch_size = 16
num_epochs = 1024
step_val = 2000
label_weights = [0.0] * 1 + [1.0] * (num_class - 1)
learning_rate_base = 0.005
decay_steps = 5000
decay_rate = 0.8
learning_rate_min = 1e-6
weight_decay = 1e-8
jitter = 0.0
jitter_val = 0.0
rotation_range = [math.pi / 72, math.pi, math.pi / 72, 'u']
rotation_range_val = [0, 0, 0, 'u']
rotation_order = 'rxyz'
scaling_range = [0.05, 0.05, 0.05, 'g']
scaling_range_val = [0, 0, 0, 'u']
sample_num_variance = 1 // 8
sample_num_clip = 1 // 4
x = 8
xconv_param_name = ('K', 'D', 'P', 'C', 'links')
xconv_params = [dict(zip(xconv_param_name, xconv_param)) for xconv_param in
[(8, 1, -1, 32 * x, []),
(12, 2, 768, 64 * x, []),
(16, 2, 384, 96 * x, []),
(16, 4, 128, 128 * x, [])]]
with_global = True
xdconv_param_name = ('K', 'D', 'pts_layer_idx', 'qrs_layer_idx')
xdconv_params = [dict(zip(xdconv_param_name, xdconv_param)) for xdconv_param in
[(16, 4, 3, 3),
(16, 2, 2, 2),
(12, 2, 2, 1),
(8, 2, 1, 0)]]
fc_param_name = ('C', 'dropout_rate')
fc_params = [dict(zip(fc_param_name, fc_param)) for fc_param in
[(32 * x, 0.0),
(32 * x, 0.5)]]
sampling = 'fps'
optimizer = 'adam'
epsilon = 1e-5
data_dim = 3
with_X_transformation = True
sorting_method = None
keep_remainder = True