Solved by ptrblck in post #4 
              
              
                You would have to remove the target_transform and use the XML tree for your detection task. 
Have a look at this tutorial. 
While another dataset is used, it might be a good starter for your VOCDetection.