Solved by ptrblck in post #2 
              
              
                The transforms.Compose transformations wrap the transformations in a nested list, while only a single list is expected. Remove one list ([]) and it should work.