Seems that get transforms returns a collection of transforms, the first element being transforms to be applied to the train set and the second to the val set.
Was getting an error earlier (probably due to autoreload) but now it seems I can construct the collection of transforms manually like so:
I still get same results though:
The rotate function dos not accept any arguments regarding padding and it is very straightforwad:
def rotate(degrees:uniform):
"Rotate image by `degrees`."
angle = degrees * math.pi / 180
return [[cos(angle), -sin(angle), 0.],
[sin(angle), cos(angle), 0.],
[0. , 0. , 1.]]
This, through the decorator, actually ends up being an instance of Transform
(the function gets passed into the constructor). Now I don’t see anything in the Transform
class that could be causing this behavior.
Could it be that when the 3x3 transformation from the rotate function gets applied to the gird, it automatically creates the reflection behavior?