tensorflow/models · error · ValueError

Unsupported learning rate type

Error message

Unsupported learning rate type: {}.

What it means

Learning-rate factory dispatch guard: params.type matched neither 'step' nor 'cosine', the only supported warmup schedule types. The configuration's learning rate type string is unrecognized.

Solutions

  1. Set the learning rate type to 'step' or 'cosine'
  2. Check the config yaml/flags for typos in the learning rate type field
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at official/legaacy/detection/modeling/learning_rates.py:98 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24). Data as JSON: /api/errors/c1319e4b0466ee49. Report an issue: GitHub.

Appendix: source

Thrown at official/legacy/detection/modeling/learning_rates.py:98:98

  if params.type == 'step':
    return StepLearningRateWithLinearWarmup(total_steps, params)
  elif params.type == 'cosine':
    return CosineLearningRateWithLinearWarmup(total_steps, params)
  else:
    raise ValueError('Unsupported learning rate type: {}.'.format(params.type))

View on GitHub (pinned to e006f5f0d5)