{"record":{"id":"a7fb32c1d502eff0","repo":"keras-team/keras","slug":"left-cropping-must-be-0-received-left-croppin","errorCode":null,"errorMessage":"left_cropping must be >= 0. Received: left_cropping={left_cropping}","messagePattern":"left_cropping must be >= 0\\. Received: left_cropping=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/ops/image.py","lineNumber":1980,"sourceCode":"                raise ValueError(\n                    \"bottom_cropping must be >= 0. \"\n                    f\"Received: bottom_cropping={bottom_cropping}\"\n                )\n            if target_height < 0:\n                raise ValueError(\n                    \"target_height must be >= 0. \"\n                    f\"Received: target_height={target_height}\"\n                )\n\n        if width is not None:\n            left_cropping = self.left_cropping\n            right_cropping = self.right_cropping\n            if left_cropping is None:\n                left_cropping = width - target_width - right_cropping\n            if right_cropping is None:\n                right_cropping = width - target_width - left_cropping\n            if left_cropping < 0:\n                raise ValueError(\n                    \"left_cropping must be >= 0. \"\n                    f\"Received: left_cropping={left_cropping}\"\n                )\n            if right_cropping < 0:\n                raise ValueError(\n                    \"right_cropping must be >= 0. \"\n                    f\"Received: right_cropping={right_cropping}\"\n                )\n            if target_width < 0:\n                raise ValueError(\n                    \"target_width must be >= 0. \"\n                    f\"Received: target_width={target_width}\"\n                )\n\n        images_shape[height_axis] = target_height\n        images_shape[width_axis] = target_width\n        return KerasTensor(shape=images_shape, dtype=images.dtype)\n","sourceCodeStart":1962,"sourceCodeEnd":1998,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/ops/image.py#L1962-L1998","documentation":"Error \"left_cropping must be >= 0. Received: left_cropping={left_cropping}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/ops/image.py:1980 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"}