MCPcopy Create free account
hub / github.com/CUT3R/CUT3R / cycled_linear_schedule

Function cycled_linear_schedule

cloud_opt/utils.py:429–435  ·  view source on GitHub ↗
(t, lr_start, lr_end, num_cycles=2)

Source from the content-addressed store, hash-verified

427
428
429def cycled_linear_schedule(t, lr_start, lr_end, num_cycles=2):
430 assert 0 <= t <= 1
431 cycle_t = t * num_cycles
432 cycle_t = cycle_t - int(cycle_t)
433 if t == 1:
434 cycle_t = 1
435 return linear_schedule(cycle_t, lr_start, lr_end)
436
437
438def adjust_learning_rate_by_lr(optimizer, lr):

Callers 1

global_alignment_iterFunction · 0.85

Calls 1

linear_scheduleFunction · 0.70

Tested by

no test coverage detected