{"record":{"id":"eedd2bb24524c2b2","repo":"keras-team/keras","slug":"bottom-cropping-must-be-0-received-bottom-cro","errorCode":null,"errorMessage":"bottom_cropping must be >= 0. Received: bottom_cropping={bottom_cropping}","messagePattern":"bottom_cropping must be >= 0\\. Received: bottom_cropping=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/ops/image.py","lineNumber":1962,"sourceCode":"            target_height = height - self.top_cropping - self.bottom_cropping\n        target_width = self.target_width\n        if target_width is None:\n            target_width = width - self.left_cropping - self.right_cropping\n\n        if height is not None:\n            top_cropping = self.top_cropping\n            bottom_cropping = self.bottom_cropping\n            if top_cropping is None:\n                top_cropping = height - target_height - bottom_cropping\n            if bottom_cropping is None:\n                bottom_cropping = height - target_height - top_cropping\n            if top_cropping < 0:\n                raise ValueError(\n                    \"top_cropping must be >= 0. \"\n                    f\"Received: top_cropping={top_cropping}\"\n                )\n            if bottom_cropping < 0:\n                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(","sourceCodeStart":1944,"sourceCodeEnd":1980,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/ops/image.py#L1944-L1980","documentation":"Error \"bottom_cropping must be >= 0. Received: bottom_cropping={bottom_cropping}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/ops/image.py:1962 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"}