{"record":{"id":"1383ccfec1103e67","repo":"keras-team/keras","slug":"start-points-and-end-points-must-have-the-same-sha-1383cc","errorCode":null,"errorMessage":"start_points and end_points must have the same shape. Received start_points.shape={start_points.shape}, end_points.shape={end_points.shape}","messagePattern":"start_points and end_points must have the same shape\\. Received start_points\\.shape=(.+?), end_points\\.shape=(.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/numpy/image.py","lineNumber":695,"sourceCode":"    if len(images.shape) not in (3, 4):\n        raise ValueError(\n            \"Invalid images rank: expected rank 3 (single image) \"\n            \"or rank 4 (batch of images). Received input with shape: \"\n            f\"images.shape={images.shape}\"\n        )\n\n    if start_points.ndim not in (2, 3) or start_points.shape[-2:] != (4, 2):\n        raise ValueError(\n            \"Invalid start_points shape: expected (4,2) for a single image\"\n            f\" or (N,4,2) for a batch. Received shape: {start_points.shape}\"\n        )\n    if end_points.ndim not in (2, 3) or end_points.shape[-2:] != (4, 2):\n        raise ValueError(\n            \"Invalid end_points shape: expected (4,2) for a single image\"\n            f\" or (N,4,2) for a batch. Received shape: {end_points.shape}\"\n        )\n    if start_points.shape != end_points.shape:\n        raise ValueError(\n            \"start_points and end_points must have the same shape.\"\n            f\" Received start_points.shape={start_points.shape}, \"\n            f\"end_points.shape={end_points.shape}\"\n        )\n\n    input_dtype = images.dtype\n    if input_dtype == \"float16\":\n        images = images.astype(\"float32\")\n\n    need_squeeze = False\n    if len(images.shape) == 3:\n        images = np.expand_dims(images, axis=0)\n        need_squeeze = True\n\n    if len(start_points.shape) == 2:\n        start_points = np.expand_dims(start_points, axis=0)\n    if len(end_points.shape) == 2:\n        end_points = np.expand_dims(end_points, axis=0)","sourceCodeStart":677,"sourceCodeEnd":713,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/numpy/image.py#L677-L713","documentation":"Error \"start_points and end_points must have the same shape. Received start_points.shape={start_points.shape}, end_points.shape={end_points.shape}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/numpy/image.py:695 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"}