MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

utils/general_utils.py:164–171  ·  view source on GitHub ↗
(self, optimizer, warmup_iters: int, max_iters: int, initial_lr: float = 1e-10, last_iter: int = -1, min_lr: float = 0.0, decay: bool = True)

Source from the content-addressed store, hash-verified

162
163class CosineWarmupScheduler(LRScheduler):
164 def __init__(self, optimizer, warmup_iters: int, max_iters: int, initial_lr: float = 1e-10, last_iter: int = -1, min_lr: float = 0.0, decay: bool = True):
165 self.warmup_iters = warmup_iters
166 self.max_iters = max_iters
167 self.initial_lr = initial_lr
168 self.min_lr = min_lr
169 self.decay = decay
170 self._epoch = 0
171 super().__init__(optimizer, last_iter)
172
173 def get_lr(self):
174 # logger.debug(f"step count: {self._step_count} | warmup iters: {self.warmup_iters} | max iters: {self.max_iters}")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected