Your inferencing example looks epic Mr Wightman!  You should submit it to PyTorch Examples repo below. (Perhaps inside “imagenet” folder, since your code / arguments match training script inside the folder?)
By the way, I missed the DPN paper this summer - thanks for the implementation! I have starred it and will check it out more.

  
      
      GitHub
  
  
    

pytorch/examples 29

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.