Solved by ptrblck in post #2 
              
              
                Currently you are passing the composed transformation as the target_transform. 
Since it consists of a Resize, I think you wanted to pass it as the transform instead. 
Could you try to change that and see if it’s working?