{"record":{"id":"d09f49bb5a3489cb","repo":"keras-team/keras","slug":"input-size-must-be-at-least-min-size-x-min-size","errorCode":null,"errorMessage":"Input size must be at least {min_size}x{min_size}; Received: input_shape={input_shape}","messagePattern":"Input size must be at least (.+?)x(.+?); Received: input_shape=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/applications/imagenet_utils.py","lineNumber":386,"sourceCode":"                        \"The input must have 3 channels; Received \"\n                        f\"`input_shape={input_shape}`\"\n                    )\n                if (\n                    input_shape[1] is not None and input_shape[1] < min_size\n                ) or (input_shape[2] is not None and input_shape[2] < min_size):\n                    raise ValueError(\n                        f\"Input size must be at least {min_size}\"\n                        f\"x{min_size}; Received: \"\n                        f\"input_shape={input_shape}\"\n                    )\n        else:\n            if input_shape is not None:\n                if len(input_shape) != 3:\n                    raise ValueError(\n                        \"`input_shape` must be a tuple of three integers.\"\n                    )\n                if input_shape[-1] != 3 and weights == \"imagenet\":\n                    raise ValueError(\n                        \"The input must have 3 channels; Received \"\n                        f\"`input_shape={input_shape}`\"\n                    )\n                if (\n                    input_shape[0] is not None and input_shape[0] < min_size\n                ) or (input_shape[1] is not None and input_shape[1] < min_size):\n                    raise ValueError(\n                        \"Input size must be at least \"\n                        f\"{min_size}x{min_size}; Received: \"\n                        f\"input_shape={input_shape}\"\n                    )\n    else:\n        if require_flatten:\n            input_shape = default_shape\n        else:\n            if data_format == \"channels_first\":\n                input_shape = (3, None, None)\n            else:","sourceCodeStart":368,"sourceCodeEnd":404,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/applications/imagenet_utils.py#L368-L404","documentation":"Error \"Input size must be at least {min_size}x{min_size}; Received: input_shape={input_shape}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/applications/imagenet_utils.py:386 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":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}