Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs(contributing): kornia takes floating-point tensors; no pull requests adding integer-input support (#6532)

Dmytro Mishkind1867b7118f4
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d83fcdefe..409270ab8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -19,6 +19,7 @@ The rest of this guide contains practical and technical guidance so nobody has t
- You do not need to ask before working on an issue that is not reserved. Say on the issue that you are taking it, then open a pull request, as a draft if you still have questions. If a claim has no pull request after two weeks, anyone may take the issue; say so on the issue when you do.
- Some issues say they are reserved for a maintainer implementation, and some already have an open pull request. Please comment on the issue or on that pull request instead of opening another one.
- Open an issue with a reproducer before fixing a numerical edge case that realistic inputs do not reach, such as half-precision overflow at magnitudes far beyond image or coordinate ranges, or a matrix scaled by `1e15`. Each such fix costs a full review across dtypes and devices and adds a promotion path to maintain, so we decide first whether it is worth that cost. One issue can list several cases. Wrong results on realistic inputs are welcome directly as pull requests.
+- Kornia functions take floating-point tensors, and images are floats in `[0, 1]` (see [Conventions & Pitfalls](https://kornia.readthedocs.io/en/latest/get-started/conventions.html)). Integer input is not a goal: a few cheap, scale-free image filters accept it, and we do not accept pull requests that add integer-input support anywhere else, especially for `int8` and other narrow integer types. If a function misbehaves on an integer tensor, convert the input to float first.
- Check the part you changed and tell us what you ran. A bug fix is easier to trust when it includes a test that fails without the fix. Numerical work is easier to review when expected values come from a reference implementation, a paper, or a mathematical invariant.
- Look for an existing `kornia` utility before adding another implementation. Keep changes focused, follow nearby code, and update the documentation when public behavior changes.
- Read your own contribution and stay part of the conversation about it. You do not need perfect English or an immediate answer; we care that questions and technical concerns are treated seriously.