Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

566 B
Raw Blame

RandomRotation90 now draws times uniformly over the whole numbers of its closed range. The draw used to be a continuous number that was then rounded, which gave the two end points half the probability of the others: times=(-1, 1) drew no turn about half of the time and each quarter turn about a quarter of the time (#4409). Seeded draws therefore differ from earlier releases, and an integer tensor range such as torch.tensor([0, 2]) now draws its upper bound too, where it used to draw only 0 and 1. A range with a fractional bound is drawn as before.