Solved by mMagmer in post #6 
              
              
                in your code , it’s for creating val and train set . 
this is one way of spliting your dataset to train and val set. 
if you set sampler to None, dataloader choose samples from all semple in your dataset. 

transform doesn’t  work this way by default . in most case dataset getitem applis transform t…