{"record":{"id":"8e938649b8d97cde","repo":"tensorflow/models","slug":"filter-size-scale-is-not-greater-than-zero-8e9386","errorCode":null,"errorMessage":"filter_size_scale is not greater than zero.","messagePattern":"filter_size_scale is not greater than zero\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/modeling/backbones/mobilenet.py","lineNumber":1294,"sourceCode":"        this number.\n      stochastic_depth_drop_rate: A `float` of drop rate for drop connect layer.\n      flat_stochastic_depth_drop_rate: A `bool`, indicating that the stochastic\n        depth drop rate will be fixed and equal to all blocks.\n      regularize_depthwise: If Ture, apply regularization on depthwise.\n      use_sync_bn: If True, use synchronized batch normalization.\n      finegrain_classification_mode: If True, the model will keep the last layer\n        large even for small multipliers, following\n        https://arxiv.org/abs/1801.04381.\n      output_intermediate_endpoints: A `bool` of whether or not output the\n        intermediate endpoints.\n      **kwargs: Additional keyword arguments to be passed.\n    \"\"\"\n    if model_id not in SUPPORTED_SPECS_MAP:\n      raise ValueError('The MobileNet version {} '\n                       'is not supported'.format(model_id))\n\n    if filter_size_scale <= 0:\n      raise ValueError('filter_size_scale is not greater than zero.')\n\n    if output_stride is not None:\n      if model_id == 'MobileNetV1':\n        if output_stride not in [8, 16, 32]:\n          raise ValueError('Only allowed output_stride values are 8, 16, 32.')\n      else:\n        if output_stride == 0 or (output_stride > 1 and output_stride % 2):\n          raise ValueError('Output stride must be None, 1 or a multiple of 2.')\n\n    self._model_id = model_id\n    self._input_specs = input_specs\n    self._filter_size_scale = filter_size_scale\n    self._min_depth = min_depth\n    self._output_stride = output_stride\n    self._divisible_by = divisible_by\n    self._stochastic_depth_drop_rate = stochastic_depth_drop_rate\n    self._flat_stochastic_depth_drop_rate = flat_stochastic_depth_drop_rate\n    self._regularize_depthwise = regularize_depthwise","sourceCodeStart":1276,"sourceCodeEnd":1312,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/modeling/backbones/mobilenet.py#L1276-L1312","documentation":"Error \"filter_size_scale is not greater than zero.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/modeling/backbones/mobilenet.py:1294 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set filter_size_scale to a positive float (e.g. 1.0).","Remove filter_size_scale from the config to use the default scaling."],"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"}