MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / EntropyConfig

Class EntropyConfig

gsplat/compression_simulation/config.py:122–136  ·  view source on GitHub ↗

Configuration for entropy constraint stage.

Source from the content-addressed store, hash-verified

120
121@dataclass
122class EntropyConfig:
123 """Configuration for entropy constraint stage."""
124
125 enabled: bool = False
126 model_type: Literal["factorized_model", "gaussian_model"] = "factorized_model"
127 steps: Dict[str, int] = field(default_factory=_default_entropy_steps)
128 factorized_lr: float = 1e-4
129 gaussian_lr: float = 5e-3
130 scheduler_gamma: float = 0.01
131 rd_lambda: float = 0.01 # Rate-distortion trade-off parameter
132
133 def ensure_all_attributes(self) -> None:
134 for name in ATTRIBUTE_NAMES:
135 if name not in self.steps:
136 self.steps[name] = -1
137
138
139@dataclass

Callers 2

_build_configFunction · 0.90
from_trainer_configMethod · 0.85

Calls

no outgoing calls

Tested by 1

_build_configFunction · 0.72