Solved by ptrblck in post #2 
              
              
                Related issue 
The linked object detection tutorial links to the references/detection/transforms.py, which implement transformations accepting an input and target tensor, so you would need to copy these fles (or git clone) to your workspace.