Samiha:

since I am trying in my laptop I only able to run about 20 frames.


Is this due to some memory limitation? Would you like to process 20 frames in each batch?



 Samiha:

Can anyone please tell how can I input 20 frames of a video dataset instead of the whole of it?


How are you loading your data so far?
If you are using a custom Dataset, limiting the length should be easy, as you would only have to return the reduced number in __len__(self).



 Samiha:

I also have 2 .pth files in the model. Do these need to be modified?


What do these files contain?
You would need to provide some more information about the use case, what you have done so far, and where you are stuck currently.