π Geometric Computer Vision Library for Spatial AI
DeDoDe.detect and DeDoDe.forward take the scoremap softmax and the keypoint sampling in float32 for a float16 or bfloat16 model, and the detector logits are no longer rounded to the half dtype, so the scores of a half-precision model are float32 like its keypoints. They used to run in the model dtype: in float16 the probabilities of an image above 128 x 128 fall below the smallest normal number, and on a peaky synthetic map 97 % of the top-10000 scores were 0 and only 15 % of the float32 keypoints were kept; bfloat16 kept 99.5 % of them, in another order. Float32 models are unchanged on CPU and MPS; on CUDA, where amp_dtype autocast is on by default, the first upsampling of the logits now also runs in float32, as in the reference. Float64 models keep every logit term in float64 instead of rounding the later ones to float32.