I have data that contains sequences with different number of frames. i.e. one sequence with 58 and another one with 63 etc...
how can I use the data to do the following part:

here when I use np.array it flatten the array as the elements have different shape or size

and here I cannot specify the input shape as I couldn't do the previous part