-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.py
More file actions
108 lines (88 loc) · 2.51 KB
/
params.py
File metadata and controls
108 lines (88 loc) · 2.51 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
from dataclasses import dataclass, field
@dataclass
class ModelParams:
sh_degree: int = 3
source_path: str = ""
model_path: str = ""
images: str = "images"
resolution: int = -1
white_background: bool = False
data_device: str = "cuda"
eval: bool = False
test_hold: int | float = 8
init_points: int = 100_000
init_type: str = "sample" # random, points, sample
init_ply: str | None = None
num_frames: int = -1
nth_frames: int = -1
frames_dist: str = "uniform"
mask_subdir: str | None = None
mask_level: str = "default"
mask_dim: int = 8
@dataclass
class PipeParams:
debug: bool = False
compute_cov3D_python: bool = False
convert_shs_python: bool = False
@dataclass
class OptimizationParams:
iterations: int = 30_000
position_lr_init: float = 1.6e-4
position_lr_final: float = 1.6e-6
position_lr_delay_mult: float = 0.01
position_lr_max_steps: int = 30_000
sh_lr: float = 2.5e-3
opacity_lr: float = 0.05
scaling_lr: float = 5e-3
rotation_lr: float = 1e-3
feature_lr: float = 2.5e-3
percent_dense: float = 0.01
lambda_dssim: float = 0.2
densification_interval: int = 100
opacity_reset_interval: int = 3000
densify_from_iter: int = 500
densify_until_iter: int = 15_000
densify_grad_threshold: float = 2e-4
random_background: bool = False
only_features: bool = False
num_points_limit: int = 0
feature_init: str = "sh"
static_xyz: bool = False
random_background_features: bool = False
photo_lambda: float = 1.0
inst2d_lambda: float = 1.0
inst2d_sample_size: int = -1
inst2d_gamma: float = 1.0
inst2d_weights: list[float] = field(default_factory=lambda: [1.0, 1.0])
inst2d_normalize: bool = False
inst2d_interval: int = 1
inst2d_from_iter: int = 0
var_lambda: float = 0.0
@dataclass
class ClusterParams:
enabled: bool = False
output_dir: str | None = None
position: float = 0.0
color: float = 0.0
min_size: int = 5
min_samples: int | None = None
eps: float = 0.0
@dataclass
class LanguageParams:
enabled: bool = False
model: str = "clip"
topk: int = 5
levels: int = 1
ratio: float = 0.1
dynamic_ratio: bool = False
masked: bool = False
rendering: bool = False
pred_thresh: float = 0.2
alpha_blend: float = 0.0
@dataclass
class ExportScanNetppParams:
enabled: bool = False
output_path: str | None = None
knn_k: int = 1
sem_topk: int = 3
use_segments: bool = False