forked from yangyanli/PointCNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
semantic3d_x4_2048_fps.py
70 lines (50 loc) · 1.52 KB
/
semantic3d_x4_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
69
70
#!/usr/bin/python3
import math
num_class = 8
sample_num = 2048
batch_size = 12
num_epochs = 256
label_weights = []
for c in range(num_class):
label_weights.append(1.0)
learning_rate_base = 0.001
decay_steps = 20000
decay_rate = 0.7
learning_rate_min = 1e-6
step_val = 500
weight_decay = 0.0
jitter = 0.0
jitter_val = 0.0
rotation_range = [0, math.pi/32., 0, 'u']
rotation_range_val = [0, 0, 0, 'u']
rotation_order = 'rxyz'
scaling_range = [0.0, 0.0, 0.0, '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
[(12, 1, -1, 16 * x, []),
(16, 1, 768, 32 * x, []),
(16, 2, 384, 64 * x, []),
(16, 2, 128, 96 * 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, 2, 3, 2),
(16, 1, 2, 1),
(12, 1, 1, 0)]]
fc_param_name = ('C', 'dropout_rate')
fc_params = [dict(zip(fc_param_name, fc_param)) for fc_param in
[(16 * x, 0.0),
(16 * x, 0.7)]]
sampling = 'fps'
optimizer = 'adam'
epsilon = 1e-3
data_dim = 7
use_extra_features = True
with_normal_feature = False
with_X_transformation = True
sorting_method = None
keep_remainder = True