This here is actually an implementation of the dataset class, which is made for videos. The implemented getitem function loads several frames of a video and returns them.

  
      
      github.com
  
  
    

RaivoKoot/Video-Dataset-Loading-Pytorch 6


  Generic PyTorch Dataset Implementation for Loading, Preprocessing and Augmenting Video Datasets