-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopt.py
87 lines (73 loc) · 1.77 KB
/
opt.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
def get_model_args(parser):
parser.add_argument(
'-df',
"--use_div_offsets",
action="store_true",
help="predict offsets with two sperated prediction",
)
parser.add_argument(
'-f',
"--use_feat_predict",
action="store_true",
help="use a mlp to predict the hash feature",
)
parser.add_argument(
'-w',
"--use_weight_predict",
action="store_true",
help="use a mlp to predict the weight feature",
)
parser.add_argument(
'-te',
"--use_time_embedding",
action="store_true",
help="predict density with time embedding",
)
parser.add_argument(
'-ta',
"--use_time_attenuation",
action="store_true",
help="use time attenuation in time embedding",
)
parser.add_argument(
'-ms',
"--moving_step",
type=float,
default=1e-4,
)
# losses
parser.add_argument(
'-o',
"--use_opacity_loss",
action="store_true",
help="use a opacity loss",
)
parser.add_argument(
'-d',
"--distortion_loss",
action="store_true",
help="use a distortion loss",
)
parser.add_argument(
'-wr',
"--weight_rgbper",
action="store_true",
help="use weighted rgbs for rgb",
)
parser.add_argument(
'-ae',
"--acc_entorpy_loss",
action="store_true",
help="use accumulated opacites as entropy loss",
)
parser.add_argument(
'--render_video',
action="store_true",
help="render video",
)
parser.add_argument(
'--load_model',
action="store_true",
help="load model",
)
return parser