{"record":{"id":"57326c688e06d89d","repo":"tensorflow/models","slug":"the-min-level-should-be-decoder-output-level-b","errorCode":null,"errorMessage":"The min_level should be >= decoder output level, but {} < {}","messagePattern":"The min_level should be >= decoder output level, but (.+?) < (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/pointpillars/modeling/heads.py","lineNumber":76,"sourceCode":"      output_specs: A dict of {level: TensorShape} pairs for the model output.\n    \"\"\"\n    super(SSDHead, self).__init__(**kwargs)\n    self._config_dict = {\n        'num_classes': num_classes,\n        'num_anchors_per_location': num_anchors_per_location,\n        'num_params_per_anchor': num_params_per_anchor,\n        'attribute_heads': attribute_heads,\n        'min_level': min_level,\n        'max_level': max_level,\n        'kernel_regularizer': kernel_regularizer,\n    }\n\n    utils.assert_channels_last()\n\n  def build(self, input_specs: Mapping[str, tf.TensorShape]):\n    self._decoder_output_level = int(min(input_specs.keys()))\n    if self._config_dict['min_level'] < self._decoder_output_level:\n      raise ValueError('The min_level should be >= decoder output '\n                       'level, but {} < {}'.format(\n                           self._config_dict['min_level'],\n                           self._decoder_output_level))\n\n    # Multi-level convs.\n    # Set num_filters as the one of decoder's output level.\n    num_filters = input_specs[str(self._decoder_output_level)].as_list()[-1]\n    self._convs = {}\n    for level in range(self._decoder_output_level + 1,\n                       self._config_dict['max_level'] + 1):\n      self._convs[str(level)] = layers.ConvBlock(\n          filters=num_filters,\n          kernel_size=3,\n          strides=2,\n          kernel_regularizer=self._config_dict['kernel_regularizer'])\n\n    # Detection convs, share weights across multi levels.\n    self._classifier = tf_keras.layers.Conv2D(","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/pointpillars/modeling/heads.py#L58-L94","documentation":"Error \"The min_level should be >= decoder output level, but {} < {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/pointpillars/modeling/heads.py:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}