Solved by mutaku in post #2 
              
              
                Sure, see the tutorial documentation here on data loading. Particularly, look at the Transforms section which discusses doing some preprocessing with your dataset and loaders.