I am a using a custom sampler class similar to the one described here : How upload sequence of image on video-classification 3 suggested by @ptrblck  (https://discuss.pytorch.org/u/ptrblck)  to stack up images sequentially from the datasets before feeding into the network.
Now I also wanted to use WeightedSampler to balance the classes.
Any ideas to use a WeightedSampler along with a custom sampler class ?
Thanks in advance !!