Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

666 B
Raw Blame

RandomPosterize now draws bits 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 interior values: bits=(0, 8) drew 0 and 8 about half as often as values 1 through 7 (#6334). The auto-augment Posterize op draws through the same generator, so TrivialAugment's posterize draws over (4, 8) are now uniform too; RandAugment sets the magnitude directly and AutoAugment's posterize bins have fractional bounds, so neither changes. Seeded draws therefore differ from earlier releases. A range with a fractional bound is drawn as before.