MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / LearningRate

Class LearningRate

deeplabcut/pose_estimation_tensorflow/core/train.py:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class LearningRate:
38 def __init__(self, cfg):
39 self.steps = cfg["multi_step"]
40 self.current_step = 0
41
42 def get_lr(self, iteration):
43 lr = self.steps[self.current_step][0]
44 if iteration == self.steps[self.current_step][1]:
45 self.current_step += 1
46
47 return lr
48
49
50def get_batch_spec(cfg):

Callers 2

trainFunction · 0.90
trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected