MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / poly2_schd

Function poly2_schd

loss/optimizer.py:70–75  ·  view source on GitHub ↗
(epoch)

Source from the content-addressed store, hash-verified

68 return math.pow(1 - epoch / args.max_epoch, args.poly_exp)
69
70 def poly2_schd(epoch):
71 if epoch < args.poly_step:
72 poly_exp = args.poly_exp
73 else:
74 poly_exp = 2 * args.poly_exp
75 return math.pow(1 - epoch / args.max_epoch, poly_exp)
76
77 if args.lr_schedule == 'scl-poly':
78 if cfg.REDUCE_BORDER_EPOCH == -1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected