π Geometric Computer Vision Library for Spatial AI
ImageRegistrator.register now optimizes a float16 or bfloat16 model or image in float32 and hands the model back in
its own dtype. It used to optimize in the half dtype, where Adam's second-moment estimate and eps round to 0 for
gradients below about 0.0055: a float16 similarity registration ended in NaN parameters on CPU and raised in
linalg.inv on CUDA, and half registrations stopped short of the float32 result, such as -5.78 to -5.85 degrees
instead of -6.00 for a 6 degree rotation. A float16, bfloat16 or float32 model now also registers images of another
of these dtypes, which used to raise in grid_sample, and warp_src_into_dst and warp_dst_into_src sample such a
pair in float32 and return the image's dtype.