mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2026-02-24 04:19:41 +01:00
Update train.py
This commit is contained in:
4
train.py
4
train.py
@@ -21,10 +21,10 @@ log_path = 'train_log'
|
||||
def get_learning_rate(step):
|
||||
if step < 2000:
|
||||
mul = step / 2000.
|
||||
return 1e-4 * mul
|
||||
return 3e-4 * mul
|
||||
else:
|
||||
mul = np.cos((step - 2000) / (args.epoch * args.step_per_epoch - 2000.) * math.pi) * 0.5 + 0.5
|
||||
return (1e-4 - 1e-5) * mul + 1e-5
|
||||
return (3e-4 - 3e-6) * mul + 3e-6
|
||||
|
||||
def flow2rgb(flow_map_np):
|
||||
h, w, _ = flow_map_np.shape
|
||||
|
||||
Reference in New Issue
Block a user