MCPcopy Index your code
hub / github.com/hzwer/ECCV2022-RIFE / get_learning_rate

Function get_learning_rate

train.py:21–27  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

19log_path = 'train_log'
20
21def get_learning_rate(step):
22 if step < 2000:
23 mul = step / 2000.
24 return 3e-4 * mul
25 else:
26 mul = np.cos((step - 2000) / (args.epoch * args.step_per_epoch - 2000.) * math.pi) * 0.5 + 0.5
27 return (3e-4 - 3e-6) * mul + 3e-6
28
29def flow2rgb(flow_map_np):
30 h, w, _ = flow_map_np.shape

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected