Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

586 B
Raw Blame

Auto-augment operations with a magnitude (Brightness, Rotate, ShearX, Posterize, TranslateX and the rest) now run after .to(device): magnitude_range reads the generator's current range, and the magnitude's factor is placed on the magnitude's device. RandAugment computes its magnitudes on the range's device, so a seeded RandAugment moved to an accelerator draws the signs of rotate and shear from that device's generator, and .to(torch.float16) or .to(torch.bfloat16) computes its magnitudes from the range in that dtype, a relative change of at most 2.6e-3.