{"record":{"id":"fe0d48d7a4db0b2f","repo":"opendatalab/MinerU","slug":"mode-model-name-model-is-not-implemented","errorCode":null,"errorMessage":"mode[{model_name}_model] is not implemented!","messagePattern":"mode\\[(.+?)_model\\] is not implemented!","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"mineru/model/utils/pytorchocr/modeling/backbones/det_mobilenet_v3.py","lineNumber":199,"sourceCode":"            cls_ch_squeeze = 960\n        elif model_name == \"small\":\n            cfg = [\n                # k, exp, c,  se,     nl,  s,\n                [3, 16, 16, True, \"relu\", 2],\n                [3, 72, 24, False, \"relu\", 2],\n                [3, 88, 24, False, \"relu\", 1],\n                [5, 96, 40, True, \"hard_swish\", 2],\n                [5, 240, 40, True, \"hard_swish\", 1],\n                [5, 240, 40, True, \"hard_swish\", 1],\n                [5, 120, 48, True, \"hard_swish\", 1],\n                [5, 144, 48, True, \"hard_swish\", 1],\n                [5, 288, 96, True, \"hard_swish\", 2],\n                [5, 576, 96, True, \"hard_swish\", 1],\n                [5, 576, 96, True, \"hard_swish\", 1],\n            ]\n            cls_ch_squeeze = 576\n        else:\n            raise NotImplementedError(\n                \"mode[\" + model_name + \"_model] is not implemented!\"\n            )\n\n        supported_scale = [0.35, 0.5, 0.75, 1.0, 1.25]\n        assert (\n            scale in supported_scale\n        ), \"supported scale are {} but input scale is {}\".format(supported_scale, scale)\n        inplanes = 16\n        # conv1\n        self.conv = ConvBNLayer(\n            in_channels=in_channels,\n            out_channels=make_divisible(inplanes * scale),\n            kernel_size=3,\n            stride=2,\n            padding=1,\n            groups=1,\n            if_act=True,\n            act=\"hard_swish\",","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/opendatalab/MinerU/blob/4fe4bde114a23ee5dd637eae99b767f4669bf58c/mineru/model/utils/pytorchocr/modeling/backbones/det_mobilenet_v3.py#L181-L217","documentation":"Raised by the MobileNetV3 detection backbone when model_name (the 'mode' config key) is not 'large' or 'small'. The backbone only contains layer tables for those two variants; any other mode string raises NotImplementedError at construction.","triggerScenarios":"Building DetModel with backbone config {name: MobileNetV3, model_name: 'tiny'|'medium'|'xlarge'} or a misspelled value like 'Large'.","commonSituations":"Configs ported from torchvision MobileNetV3 (which has more width variants); case mismatches; configs edited to try unsupported scales.","solutions":["Use model_name: 'large' or 'small' in the MobileNetV3 backbone config.","Pick a different supported backbone if you need another capacity point.","Check exact case: the comparison is case-sensitive."],"exampleFix":"# before\nBackbone:\n  name: MobileNetV3\n  model_name: medium\n  scale: 0.5\n\n# after\nBackbone:\n  name: MobileNetV3\n  model_name: small\n  scale: 0.5","handlingStrategy":"validation","validationCode":"model_name = backbone_cfg.get(\"model_name\")\nassert model_name in {\"large\", \"small\"}, f\"MobileNetV3 det supports large/small, got {model_name!r}\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate backbone config enums before model construction","Keep model YAMLs paired with the weights they shipped with"],"tags":["ocr","backbone","mobilenet","config","not-implemented"],"backgroundTag":null,"analyzedSha":"4fe4bde114a23ee5dd637eae99b767f4669bf58c","analyzedAt":"2026-08-14T21:29:18.456Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}