79754311

Date: 2025-09-03 08:16:32
Score: 0.5
Natty:
Report link

Like Julien said, just make a 50/50 random choice, then do the fixed angle rotation. Below is an example

import torchvision.transforms as T

transforms = T.Compose([
    T.RandomChoice([
        T.RandomRotation((45, 45)),
        T.RandomRotation((-45, -45)),
    ], p=[0.5, 0.5])
])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ahmad Abdallah